From 28b84aca844222c3dcccc3ef4b32bac6571ea881 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 29 Jan 2021 20:28:05 +0100 Subject: =?UTF-8?q?=CE=BB-names?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/simple.tdy | 25 +++---------------------- 1 file changed, 3 insertions(+), 22 deletions(-) (limited to 'tests') 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 }) -- cgit v1.2.1