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/216/head
Dibyendu Majumdar 3 years ago
parent 9bceadd099
commit a2ec53624d

@ -18,12 +18,3 @@ do
end
print 'Ok'
-- issue
do
local x: integer[] = {4}
local y: number[] = {4.2}
local function f()
return x[1] + 1, y[1] + 2.2
end
ravi.dumplua(f)
end

Loading…
Cancel
Save