Skip to content

Commit

Permalink
fix signature and return values for debug.getlocal; issue #713
Browse files Browse the repository at this point in the history
  • Loading branch information
JLPLabs LLC committed Oct 30, 2023
1 parent f7a2f41 commit a379928
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5315,6 +5315,7 @@ local function init_globals(lax)
types = {
a_type({ typename = "function", args = TUPLE({ THREAD, FUNCTION, NUMBER }), rets = TUPLE({}) }),
a_type({ typename = "function", args = TUPLE({ FUNCTION, NUMBER }), rets = TUPLE({}) }),
a_type({ typename = "function", args = TUPLE({ NUMBER, NUMBER }), rets = TUPLE({ STRING, ANY }) }),
},
}),
["getmetatable"] = a_gfunction(1, function(a) return { args = TUPLE({ a }), rets = TUPLE({ METATABLE(a) }) } end),
Expand Down
1 change: 1 addition & 0 deletions tl.tl
Original file line number Diff line number Diff line change
Expand Up @@ -5315,6 +5315,7 @@ local function init_globals(lax: boolean): {string:Variable}, {string:Type}
types = {
a_type { typename = "function", args = TUPLE { THREAD, FUNCTION, NUMBER }, rets = TUPLE {} },
a_type { typename = "function", args = TUPLE { FUNCTION, NUMBER }, rets = TUPLE {} },
a_type { typename = "function", args = TUPLE { NUMBER, NUMBER }, rets = TUPLE { STRING, ANY } },
},
},
["getmetatable"] = a_gfunction(1, function(a: Type): Type return { args = TUPLE { a }, rets = TUPLE { METATABLE(a) } } end),
Expand Down

0 comments on commit a379928

Please sign in to comment.