diff options
author | Bad Diode <bd@badd10de.dev> | 2024-06-24 19:36:46 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2024-06-24 19:36:46 +0200 |
commit | 2e7daa8e0765d293b1029131f6fde0592546bc0d (patch) | |
tree | 762f3e6f9a75b1e480243060e76f60a39d2c8e05 /tests | |
parent | 1c7d30ab77960be3a0c7ae259d601fa6aed640b3 (diff) | |
download | bdl-2e7daa8e0765d293b1029131f6fde0592546bc0d.tar.gz bdl-2e7daa8e0765d293b1029131f6fde0592546bc0d.zip |
Fix set typechecking
Diffstat (limited to 'tests')
-rw-r--r-- | tests/semantics.bad | 2 |
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? |
22 | let c: item | 22 | let c: item |
23 | set c.id = "hi" | 23 | set c.id = 1 |
24 | let d = c.id | 24 | let d = c.id |
25 | ; set a.name = "hello" | 25 | ; set a.name = "hello" |
26 | ; let b = a.id | 26 | ; let b = a.id |