Skip to content

Commit

Permalink
[naga] Fix type error in test.
Browse files Browse the repository at this point in the history
Change the WGSL code in the `function_returns_void` test in
`tests/wgsl-errors.rs` so that the construction expression types
correctly. Subsequent iterations of the WGSL front end will be doing
some type checking earlier, to support WGSL's automatic conversions,
and without this fix, this test will stop checking what it is intended
to check.
  • Loading branch information
jimblandy authored and teoxoy committed Nov 21, 2023
1 parent 7246226 commit 104119a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naga/tests/wgsl-errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,7 @@ fn function_returns_void() {
check(
"
fn x() {
let a = vec2<f32>(1, 2u);
let a = vec2<f32>(1.0, 2.0);
}
fn b() {
Expand Down

0 comments on commit 104119a

Please sign in to comment.