Sign in
dawn
/
tint.git
/
5c948e4f8fb803d23c8e67a36f7aa46a250e74d4
/
.
/
test
/
switch-case-selector-must-have-the-same-type-as-the-selector-expression.fail.wgsl
blob: a1abbfdb36a608ab39331c047b0630f00e865e8f [
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
:
u32
=
2
;
switch
(
a
)
{
case
-
1
:{}
default
:
{}
}
return
;
}