diff options
author | Bad Diode <bd@badd10de.dev> | 2024-06-23 21:03:53 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-06-23 21:03:53 +0200 |
commit | 42046a947e1ad636a1ee23be58ce0be2d8abbab2 (patch) | |
tree | 72217b0fef433f0106d31a436fc258b6366eae57 /tests | |
parent | c46596607e8ea5b37ac1bc145902b5c59dbce4e9 (diff) | |
download | bdl-42046a947e1ad636a1ee23be58ce0be2d8abbab2.tar.gz bdl-42046a947e1ad636a1ee23be58ce0be2d8abbab2.zip |
Add set typechecking
Diffstat (limited to 'tests')
-rw-r--r-- | tests/semantics.bad | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/semantics.bad b/tests/semantics.bad index a66c8ba..a938979 100644 --- a/tests/semantics.bad +++ b/tests/semantics.bad | |||
@@ -12,19 +12,21 @@ | |||
12 | ; a + 3 | 12 | ; a + 3 |
13 | ; } | 13 | ; } |
14 | 14 | ||
15 | let maybe = if (1 == 2) { | 15 | ; let maybe = if (1 == 2) { |
16 | 32 | 16 | ; 32 |
17 | } else { | 17 | ; } else { |
18 | 44 | 18 | ; 44 |
19 | } | 19 | ; } |
20 | 20 | ||
21 | let single = if (true) { | 21 | let single = if (true) { |
22 | 123 | 22 | 123 |
23 | } | 23 | } |
24 | 24 | ||
25 | while (!true) { | 25 | ; while (!true) { |
26 | "asjdflasdjf" | 26 | ; "asjdflasdjf" |
27 | } | 27 | ; } |
28 | |||
29 | set single = 32 | ||
28 | 30 | ||
29 | ; enum test { | 31 | ; enum test { |
30 | ; a = 1 | 32 | ; a = 1 |