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