typedlua icon indicating copy to clipboard operation
typedlua copied to clipboard

undefined type aliases not raising errors

Open kevinclancy opened this issue 8 years ago • 1 comments

Running tlc on the following code generates no errors.

interface Test
  x : snuffleupagus
end

kevinclancy avatar May 15 '16 00:05 kevinclancy

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.

mascarenhas avatar May 18 '16 18:05 mascarenhas