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' print 'Ok'
-- issue -- issue
do --do
local function f(x:integer[]) -- local function f(x:integer[])
return function () -- return function ()
return x[1][1] + 1 -- return x[1][1] + 1
end -- end
end -- end
local x = f(table.intarray(3)) -- local x = f(table.intarray(3))
x() -- x()
end --end

Loading…
Cancel
Save