aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2024-06-24 19:36:46 +0200
committerBad Diode <bd@badd10de.dev>2024-06-24 19:36:46 +0200
commit2e7daa8e0765d293b1029131f6fde0592546bc0d (patch)
tree762f3e6f9a75b1e480243060e76f60a39d2c8e05 /tests
parent1c7d30ab77960be3a0c7ae259d601fa6aed640b3 (diff)
downloadbdl-2e7daa8e0765d293b1029131f6fde0592546bc0d.tar.gz
bdl-2e7daa8e0765d293b1029131f6fde0592546bc0d.zip
Fix set typechecking
Diffstat (limited to 'tests')
-rw-r--r--tests/semantics.bad2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/semantics.bad b/tests/semantics.bad
index a6810a9..95e827b 100644
--- a/tests/semantics.bad
+++ b/tests/semantics.bad
@@ -20,7 +20,7 @@ struct item {
20; } 20; }
21; let a: item = item ; this shouldn't work, or should it return the default val? 21; let a: item = item ; this shouldn't work, or should it return the default val?
22let c: item 22let c: item
23set c.id = "hi" 23set c.id = 1
24let d = c.id 24let d = c.id
25; set a.name = "hello" 25; set a.name = "hello"
26; let b = a.id 26; let b = a.id