diff options
Diffstat (limited to 'examples/typedlua/test.lua')
-rwxr-xr-x | examples/typedlua/test.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/typedlua/test.lua b/examples/typedlua/test.lua index aa78856..4e173b9 100755 --- a/examples/typedlua/test.lua +++ b/examples/typedlua/test.lua | |||
@@ -1813,7 +1813,7 @@ concat2 = 2^3..1 | |||
1813 | test.lua:1:15: syntax error, unexpected '.1', expecting 'return', '(', 'Name', 'typealias', 'interface', 'goto', 'break', '::', 'local', 'function', 'const', 'repeat', 'for', 'do', 'while', 'if', ';', ',', 'or', 'and', '>', '<', '>=', '<=', '==', '~=', '|', '~', '&', '>>', '<<', '..', '-', '+', '%', '/', '//', '*', '^' | 1813 | test.lua:1:15: syntax error, unexpected '.1', expecting 'return', '(', 'Name', 'typealias', 'interface', 'goto', 'break', '::', 'local', 'function', 'const', 'repeat', 'for', 'do', 'while', 'if', ';', ',', 'or', 'and', '>', '<', '>=', '<=', '==', '~=', '|', '~', '&', '>>', '<<', '..', '-', '+', '%', '/', '//', '*', '^' |
1814 | ]=] | 1814 | ]=] |
1815 | e = [=[ | 1815 | e = [=[ |
1816 | test.lua:1:15: unexpected '.1', expecting 'return', '(', 'Name', 'typealias', 'interface', 'goto', 'break', '::', 'local', 'function', 'const', 'repeat', 'for', 'do', 'while', 'if', ';', ',', 'or', 'and', '>', '<', '>=', '<=', '==', '~=', '|', '~', '&', '>>', '<<', '..', '-', '+', '%', '/', '//', '*', '^' | 1816 | test.lua:1:13: malformed <number> |
1817 | ]=] | 1817 | ]=] |
1818 | 1818 | ||
1819 | r, m = parse(s) | 1819 | r, m = parse(s) |
@@ -1926,7 +1926,7 @@ goto label | |||
1926 | test.lua:2:1: syntax error, unexpected 'goto', expecting ';', '(', 'Name', '{', 'function', '...', 'true', 'false', 'nil', 'String', 'Number', '#', '~', '-', 'not' | 1926 | test.lua:2:1: syntax error, unexpected 'goto', expecting ';', '(', 'Name', '{', 'function', '...', 'true', 'false', 'nil', 'String', 'Number', '#', '~', '-', 'not' |
1927 | ]=] | 1927 | ]=] |
1928 | e = [=[ | 1928 | e = [=[ |
1929 | test.lua:2:1: unexpected 'goto', expecting ';', '(', 'Name', '{', 'function', '...', 'true', 'false', 'nil', 'String', 'Number', '#', '~', '-', 'not' | 1929 | test.lua:2:1: invalid statement after 'return' |
1930 | ]=] | 1930 | ]=] |
1931 | 1931 | ||
1932 | r, m = parse(s) | 1932 | r, m = parse(s) |
@@ -2106,7 +2106,7 @@ return 1,1-2*3+4,"alo"; | |||
2106 | test.lua:2:1: syntax error, unexpected 'return', expecting ';', '(', 'Name', '{', 'function', '...', 'true', 'false', 'nil', 'String', 'Number', '#', '~', '-', 'not' | 2106 | test.lua:2:1: syntax error, unexpected 'return', expecting ';', '(', 'Name', '{', 'function', '...', 'true', 'false', 'nil', 'String', 'Number', '#', '~', '-', 'not' |
2107 | ]=] | 2107 | ]=] |
2108 | e = [=[ | 2108 | e = [=[ |
2109 | test.lua:2:1: unexpected 'return', expecting ';', '(', 'Name', '{', 'function', '...', 'true', 'false', 'nil', 'String', 'Number', '#', '~', '-', 'not' | 2109 | test.lua:2:1: invalid statement |
2110 | ]=] | 2110 | ]=] |
2111 | 2111 | ||
2112 | r, m = parse(s) | 2112 | r, m = parse(s) |
@@ -2193,7 +2193,7 @@ x = ...:any | |||
2193 | test.lua:1:8: syntax error, unexpected ':', expecting 'return', '(', 'Name', 'typealias', 'interface', 'goto', 'break', '::', 'local', 'function', 'const', 'repeat', 'for', 'do', 'while', 'if', ';', ',', 'or', 'and', '>', '<', '>=', '<=', '==', '~=', '|', '~', '&', '>>', '<<', '..', '-', '+', '%', '/', '//', '*', '^' | 2193 | test.lua:1:8: syntax error, unexpected ':', expecting 'return', '(', 'Name', 'typealias', 'interface', 'goto', 'break', '::', 'local', 'function', 'const', 'repeat', 'for', 'do', 'while', 'if', ';', ',', 'or', 'and', '>', '<', '>=', '<=', '==', '~=', '|', '~', '&', '>>', '<<', '..', '-', '+', '%', '/', '//', '*', '^' |
2194 | ]=] | 2194 | ]=] |
2195 | e = [=[ | 2195 | e = [=[ |
2196 | test.lua:1:8: unexpected ':', expecting 'return', '(', 'Name', 'typealias', 'interface', 'goto', 'break', '::', 'local', 'function', 'const', 'repeat', 'for', 'do', 'while', 'if', ';', ',', 'or', 'and', '>', '<', '>=', '<=', '==', '~=', '|', '~', '&', '>>', '<<', '..', '-', '+', '%', '/', '//', '*', '^' | 2196 | test.lua:1:8: invalid statement |
2197 | ]=] | 2197 | ]=] |
2198 | 2198 | ||
2199 | r, m = parse(s) | 2199 | r, m = parse(s) |
@@ -2232,7 +2232,7 @@ local x:number* | |||
2232 | test.lua:1:15: syntax error, unexpected '*', expecting 'return', '(', 'Name', 'typealias', 'interface', 'goto', 'break', '::', 'local', 'function', 'const', 'repeat', 'for', 'do', 'while', 'if', ';', '=', ',', '?', '|' | 2232 | test.lua:1:15: syntax error, unexpected '*', expecting 'return', '(', 'Name', 'typealias', 'interface', 'goto', 'break', '::', 'local', 'function', 'const', 'repeat', 'for', 'do', 'while', 'if', ';', '=', ',', '?', '|' |
2233 | ]=] | 2233 | ]=] |
2234 | e = [=[ | 2234 | e = [=[ |
2235 | test.lua:1:15: unexpected '*', expecting 'return', '(', 'Name', 'typealias', 'interface', 'goto', 'break', '::', 'local', 'function', 'const', 'repeat', 'for', 'do', 'while', 'if', ';', '=', ',', '?', '|' | 2235 | test.lua:1:15: invalid local declaration |
2236 | ]=] | 2236 | ]=] |
2237 | 2237 | ||
2238 | r, m = parse(s) | 2238 | r, m = parse(s) |
@@ -2258,7 +2258,7 @@ local x:number?|string? | |||
2258 | test.lua:1:16: syntax error, unexpected '|', expecting 'return', '(', 'Name', 'typealias', 'interface', 'goto', 'break', '::', 'local', 'function', 'const', 'repeat', 'for', 'do', 'while', 'if', ';', '=', ',' | 2258 | test.lua:1:16: syntax error, unexpected '|', expecting 'return', '(', 'Name', 'typealias', 'interface', 'goto', 'break', '::', 'local', 'function', 'const', 'repeat', 'for', 'do', 'while', 'if', ';', '=', ',' |
2259 | ]=] | 2259 | ]=] |
2260 | e = [=[ | 2260 | e = [=[ |
2261 | test.lua:1:16: unexpected '|', expecting 'return', '(', 'Name', 'typealias', 'interface', 'goto', 'break', '::', 'local', 'function', 'const', 'repeat', 'for', 'do', 'while', 'if', ';', '=', ',' | 2261 | test.lua:1:16: invalid local declaration |
2262 | ]=] | 2262 | ]=] |
2263 | 2263 | ||
2264 | r, m = parse(s) | 2264 | r, m = parse(s) |