Skip to content

Commit

Permalink
issue #211 since the up-value carries the type of the local variable,…
Browse files Browse the repository at this point in the history
… we can safely infer that the result of a get on array is a primitive type
  • Loading branch information
dibyendumajumdar committed Feb 18, 2021
1 parent 2c5b958 commit 25dbc31
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/language/ravi_tests2.ravi
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 25dbc31

Please sign in to comment.