diff --git a/internal/shader/syntax_test.go b/internal/shader/syntax_test.go index a7816f8a6..38eda8788 100644 --- a/internal/shader/syntax_test.go +++ b/internal/shader/syntax_test.go @@ -2389,6 +2389,7 @@ func TestTypeRedeclaration(t *testing.T) { }{ {stmt: "type Foo int; type Foo int", err: true}, {stmt: "type Foo int; type Foo float", err: true}, + {stmt: "type Foo int; { type Foo int }", err: false}, {stmt: "type Foo int; type Bar int", err: false}, }