aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2024-06-23 21:18:44 +0200
committerBad Diode <bd@badd10de.dev>2024-06-23 21:18:44 +0200
commit25444d18759bb7dde28dc6cb7a1554a08a125e34 (patch)
tree8e934c5e72bf124e6a558acc1dfa2607740652a1 /tests
parent42046a947e1ad636a1ee23be58ce0be2d8abbab2 (diff)
downloadbdl-25444d18759bb7dde28dc6cb7a1554a08a125e34.tar.gz
bdl-25444d18759bb7dde28dc6cb7a1554a08a125e34.zip
Add non-exhaustive typechecking for cond/match expr
Diffstat (limited to 'tests')
-rw-r--r--tests/semantics.bad13
1 files changed, 9 insertions, 4 deletions
diff --git a/tests/semantics.bad b/tests/semantics.bad
index a938979..5b5c971 100644
--- a/tests/semantics.bad
+++ b/tests/semantics.bad
@@ -18,15 +18,20 @@
18; 44 18; 44
19; } 19; }
20 20
21let 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 28
29set single = 32 29; set single = 32
30
31cond {
32 1 == 2 = "hello"
33 else = "dong"
34}
30 35
31; enum test { 36; enum test {
32; a = 1 37; a = 1