diff options
author | Li Jin <dragon-fly@qq.com> | 2020-10-23 18:07:48 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-10-23 18:07:48 +0800 |
commit | c421550a006c6c01ac176a879593a20d51d77c5d (patch) | |
tree | b655baea92eda4e2249d149bfc9b08b47027fe7c | |
parent | 399c566a730f2f91a5f3b22d969cbe3e747f025d (diff) | |
download | yuescript-c421550a006c6c01ac176a879593a20d51d77c5d.tar.gz yuescript-c421550a006c6c01ac176a879593a20d51d77c5d.tar.bz2 yuescript-c421550a006c6c01ac176a879593a20d51d77c5d.zip |
fix.
-rw-r--r-- | spec/inputs/teal-lang.mp | 3 |
1 files changed, 1 insertions, 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 | |||
11 | s = add(a.value, b) | 11 | s = add(a.value, b) |
12 | print(s) | 12 | print(s) |
13 | 13 | ||
14 | $record Point, [[ | 14 | $record Point, |
15 | x: number | 15 | x: number |
16 | y: number | 16 | y: number |
17 | ]] | ||
18 | 17 | ||
19 | $method "Point.new(x:number, y:number):Point", -> | 18 | $method "Point.new(x:number, y:number):Point", -> |
20 | $local "point:Point", setmetatable {}, __index: Point | 19 | $local "point:Point", setmetatable {}, __index: Point |