aboutsummaryrefslogtreecommitdiffstats
path: root/tests/semantics.bad
diff options
context:
space:
mode:
Diffstat (limited to 'tests/semantics.bad')
-rw-r--r--tests/semantics.bad17
1 files changed, 10 insertions, 7 deletions
diff --git a/tests/semantics.bad b/tests/semantics.bad
index 1905226..011949a 100644
--- a/tests/semantics.bad
+++ b/tests/semantics.bad
@@ -7,13 +7,16 @@ struct vec {
7 } 7 }
8} 8}
9 9
10let v: vec = vec : { 10; let v: vec = vec : {
11 x = 10.0 11; x = 10.0
12 huh = { 12; huh = {
13 z = 10 13; z = 10
14 id = "blah" 14; id = "blah"
15 } 15; }
16} 16; }
17
18let v2 = vec:{}
19set v2 = vec:{}
17 20
18; fun foo(): nil { 21; fun foo(): nil {
19; struct vec { 22; struct vec {