Init new repository
This commit is contained in:
10
tests/regression_const_assign_decls.txt
Normal file
10
tests/regression_const_assign_decls.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
// #failed: resolve
|
||||
PROC :: proc() {}
|
||||
CONST :: 40;
|
||||
STRUCT :: struct { a: int; }
|
||||
|
||||
// #error: declaration is type, unexpected inside expression
|
||||
A :: STRUCT;
|
||||
// #error: expected an untyped constant
|
||||
C :: PROC;
|
||||
D :: CONST;
|
||||
Reference in New Issue
Block a user