aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/simple.tdy10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/simple.tdy b/tests/simple.tdy
index de6841b..7ecac8b 100644
--- a/tests/simple.tdy
+++ b/tests/simple.tdy
@@ -1,18 +1,24 @@
+blob B {
+ a: int
+}
+
blob A {
a: int
- b: int
+ b: B
c: float
}
hello : fn A -> = fn a: A {
print a.a
print a.b
+ print a.b.a
print a.c
}
a := A()
a.a = 1
-a.b = 2
+a.b = B()
+a.b.a = 2
a.c = 3.
hello(a)