From c421550a006c6c01ac176a879593a20d51d77c5d Mon Sep 17 00:00:00 2001 From: Li Jin Date: Fri, 23 Oct 2020 18:07:48 +0800 Subject: fix. --- spec/inputs/teal-lang.mp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/inputs/teal-lang.mp b/spec/inputs/teal-lang.mp index 29769d5..3368b95 100644 --- a/spec/inputs/teal-lang.mp +++ b/spec/inputs/teal-lang.mp @@ -11,10 +11,9 @@ $function "add(a:number, b:number):number", -> a + b s = add(a.value, b) print(s) -$record Point, [[ +$record Point, x: number y: number -]] $method "Point.new(x:number, y:number):Point", -> $local "point:Point", setmetatable {}, __index: Point -- cgit v1.2.3-55-g6feb