teal-language / tl

The compiler for Teal, a typed dialect of Lua
MIT License
2.04k stars 101 forks source link

Fix a case userdata record is not resolved properly #585

Closed pigpigyyy closed 1 year ago

pigpigyyy commented 1 year ago

The problem appeared after the new return inference commit, the minimal issue case is:

-- file: mod.tl
local record R
   userdata
end
local r: R
return r

-- file: foo.tl
local r = require("mod")
return r
github-actions[bot] commented 1 year ago

Teal Playground URL: https://585--teal-playground-preview.netlify.app

hishamhm commented 1 year ago

@pigpigyyy Thank you!!