issue #211 since the up-value carries the type of the local variable, we can safely infer that the result of a get on array is a primitive type

pull/212/head
Dibyendu Majumdar 3 years ago
parent 2c5b958d04
commit 25dbc31393

@ -19,12 +19,12 @@ end
print 'Ok'
-- issue
do
local function f(x:integer[])
return function ()
return x[1][1] + 1
end
end
local x = f(table.intarray(3))
x()
end
--do
-- local function f(x:integer[])
-- return function ()
-- return x[1][1] + 1
-- end
-- end
-- local x = f(table.intarray(3))
-- x()
--end

Loading…
Cancel
Save