diff --git a/tl.lua b/tl.lua index b4376244c..747e8e137 100644 --- a/tl.lua +++ b/tl.lua @@ -5313,8 +5313,10 @@ local function init_globals(lax) ["getlocal"] = a_type({ typename = "poly", 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({ THREAD, FUNCTION, NUMBER }), rets = STRING }), + a_type({ typename = "function", args = TUPLE({ THREAD, NUMBER, NUMBER }), rets = TUPLE({ STRING, ANY }) }), + a_type({ typename = "function", args = TUPLE({ FUNCTION, NUMBER }), rets = STRING }), + 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), diff --git a/tl.tl b/tl.tl index 097316383..730712d24 100644 --- a/tl.tl +++ b/tl.tl @@ -5313,8 +5313,10 @@ local function init_globals(lax: boolean): {string:Variable}, {string:Type} ["getlocal"] = a_type { typename = "poly", 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 { THREAD, FUNCTION, NUMBER }, rets = STRING }, + a_type { typename = "function", args = TUPLE { THREAD, NUMBER, NUMBER }, rets = TUPLE { STRING, ANY } }, + a_type { typename = "function", args = TUPLE { FUNCTION, NUMBER }, rets = STRING }, + 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),