aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorBad Diode <bd@badd10de.dev>2024-06-26 08:54:55 +0200
committerBad Diode <bd@badd10de.dev>2024-06-26 08:54:55 +0200
commitaad6b8707d59efc5c4136db470896112a45e82b1 (patch)
treea5bc48f201e5236778b46bb98b279b18a919bec5 /tests
parent5453e1545b4b3663408456ac8c8aedf2da856ac0 (diff)
downloadbdl-aad6b8707d59efc5c4136db470896112a45e82b1.tar.gz
bdl-aad6b8707d59efc5c4136db470896112a45e82b1.zip
Fix typechecking for nested struct literals
Diffstat (limited to 'tests')
-rw-r--r--tests/semantics.bad2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/semantics.bad b/tests/semantics.bad
index 55df3bf..1905226 100644
--- a/tests/semantics.bad
+++ b/tests/semantics.bad
@@ -3,6 +3,7 @@ struct vec {
3 y: f64 3 y: f64
4 huh: { 4 huh: {
5 z: int 5 z: int
6 id: str
6 } 7 }
7} 8}
8 9
@@ -10,6 +11,7 @@ let v: vec = vec : {
10 x = 10.0 11 x = 10.0
11 huh = { 12 huh = {
12 z = 10 13 z = 10
14 id = "blah"
13 } 15 }
14} 16}
15 17