aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-01-29 20:28:05 +0100
committerGustav Sörnäs <gustav@sornas.net>2021-01-29 20:28:05 +0100
commit28b84aca844222c3dcccc3ef4b32bac6571ea881 (patch)
treef2244b9ac843740390c6f8211fd39e49023fd4e6 /tests
parent5df50ecccae28fc41461637b7bde1cdb383da30e (diff)
downloadsylt-28b84aca844222c3dcccc3ef4b32bac6571ea881.tar.gz
λ-names
Diffstat (limited to 'tests')
-rw-r--r--tests/simple.tdy25
1 files changed, 3 insertions, 22 deletions
diff --git a/tests/simple.tdy b/tests/simple.tdy
index 7ecac8b..4a0b7d1 100644
--- a/tests/simple.tdy
+++ b/tests/simple.tdy
@@ -1,24 +1,5 @@
-blob B {
- a: int
+a := fn f: fn -> {
+ f()
}
-blob A {
- a: 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 = B()
-a.b.a = 2
-a.c = 3.
-
-hello(a)
+a(fn { print 2 })