aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2024-06-23 20:51:17 +0200
committerBad Diode <bd@badd10de.dev>2024-06-23 20:51:17 +0200
commitc46596607e8ea5b37ac1bc145902b5c59dbce4e9 (patch)
treebc57522170fcaf4fe80285235b7e2b9e79653f16 /tests
parenta52097738e663f8bfea9b771c6f839f3dea9d901 (diff)
downloadbdl-c46596607e8ea5b37ac1bc145902b5c59dbce4e9.tar.gz
bdl-c46596607e8ea5b37ac1bc145902b5c59dbce4e9.zip
Add while typechecking
Diffstat (limited to 'tests')
-rw-r--r--tests/semantics.bad4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/semantics.bad b/tests/semantics.bad
index c316a3c..a66c8ba 100644
--- a/tests/semantics.bad
+++ b/tests/semantics.bad
@@ -22,6 +22,10 @@ let single = if (true) {
22 123 22 123
23} 23}
24 24
25while (!true) {
26 "asjdflasdjf"
27}
28
25; enum test { 29; enum test {
26; a = 1 30; a = 1
27; b 31; b