summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-01-22 19:45:12 -0800
committerRose Hogenson <rosehogenson@posteo.net>2025-05-18 08:11:25 -0700
commite5034d3a668fbf0a4367bb582d759ba82b5576a3 (patch)
treeb0b658d254fe6a710183e60e792bb068263e77df /tests
parent06624f3183f4d773cf1023cabe2e370ebba5dee1 (diff)
downloadsml-e5034d3a668fbf0a4367bb582d759ba82b5576a3.tar.zst
Support struct expressions
Diffstat (limited to 'tests')
-rw-r--r--tests/22-nested-struct.sml9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/22-nested-struct.sml b/tests/22-nested-struct.sml
new file mode 100644
index 0000000..1eaf6ab
--- /dev/null
+++ b/tests/22-nested-struct.sml
@@ -0,0 +1,9 @@
+structure S = struct
+ structure I = struct
+ val fourtyTwo = 42
+ end
+end
+
+structure T = S.I
+
+val _ = __builtin "exit" T.fourtyTwo