/ tests / expectations / parser-module / bad_items_fail.out
bad_items_fail.out
 1  Error [EPAR0370005]: expected '@', 'struct', 'async', 'const', 'inline' -- found 'let'
 2      --> test_0:1:1
 3       |
 4     1 | let x: u32 = 0;
 5       | ^^^
 6  Error [EPAR0370005]: expected '@', 'struct', 'async', 'const', 'inline' -- found 'function'
 7      --> test_1:1:1
 8       |
 9     1 | function foo() {}
10       | ^^^^^^^^
11  Error [EPAR0370005]: expected 'inline' -- found 'function'
12      --> test_2:1:7
13       |
14     1 | async function foo() {}
15       |       ^^^^^^^^
16  Error [EPAR0370005]: expected '@', 'struct', 'async', 'const', 'inline' -- found 'transition'
17      --> test_3:1:1
18       |
19     1 | transition foo() {}
20       | ^^^^^^^^^^
21  Error [EPAR0370005]: expected 'inline' -- found 'transition'
22      --> test_4:1:7
23       |
24     1 | async transition foo() {}
25       |       ^^^^^^^^^^
26  Error [EPAR0370005]: expected '@', 'struct', 'async', 'const', 'inline' -- found 'record'
27      --> test_5:1:1
28       |
29     1 | record Foo {}
30       | ^^^^^^
31  Error [EPAR0370005]: expected '@', 'struct', 'async', 'const', 'inline' -- found 'mapping'
32      --> test_6:1:1
33       |
34     1 | mapping Map
35       | ^^^^^^^
36  Error [EPAR0370005]: expected '@', 'struct', 'async', 'const', 'inline' -- found 'program'
37      --> test_7:1:1
38       |
39     1 | program foo.alpha {}
40       | ^^^^^^^
41  Error [EPAR0370005]: expected '@', 'struct', 'async', 'const', 'inline' -- found '{'
42      --> test_8:1:1
43       |
44     1 | {
45       | ^