From d47a32377d73d3e26909dfbb9aa3b175a998626a Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Tue, 21 Nov 2023 10:34:31 -0800 Subject: [PATCH] [naga] Fix type error in test. 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. --- naga/tests/wgsl-errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/naga/tests/wgsl-errors.rs b/naga/tests/wgsl-errors.rs index 5ca43a683a..99257457fb 100644 --- a/naga/tests/wgsl-errors.rs +++ b/naga/tests/wgsl-errors.rs @@ -1909,7 +1909,7 @@ fn function_returns_void() { check( " fn x() { - let a = vec2(1, 2u); + let a = vec2(1.0, 2.0); } fn b() {