Sign in
dawn
/
tint
/
de2a019a7f9050fb799ca37660f8ce513438d514
/
.
/
test
/
switch-case-selector-must-have-the-same-type-as-the-selector-expression.fail.wgsl
blob: 3bee45b8a86b79bbb2e3bd004624e4d70fb40fbf [
file
] [
log
] [
blame
]
# v-switch03: line 7: the case selector values must have the same type as the selector expression
entry_point vertex
=
main
;
fn main
()
->
void
{
var
a
:
u32
=
2
;
switch
(
a
)
{
case
-
1
:{}
default
:
{}
}
return
;
}