andremm / typedlua

An Optional Type System for Lua
563 stars 53 forks source link

undefined type aliases not raising errors #77

Open kevinclancy opened 8 years ago

kevinclancy commented 8 years ago

Running tlc on the following code generates no errors.

interface Test
  x : snuffleupagus
end
mascarenhas commented 8 years ago

Resolution of references to global type aliases inside interfaces is lazy, so we can have mutually recursive interfaces. There should probably be a pass that checks all exported types of a module for dangling references.