Sign in
dawn
/
tint
/
2dbe9aa784b4bb01493bc57eec307a6f57f3c29e
/
.
/
test
/
switch-case-selector-must-have-the-same-type-as-the-selector-expression-2.fail.wgsl
blob: 288dede9757f6e212b9704460fb73f03a90ddb1b [
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
:
i32
=
-
2
;
switch
(
a
)
{
case
2u
:{}
default
:
{}
}
return
;
}