-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
expands aliases inside recursive types, fixes bug referenced by pull …
…request #56
- Loading branch information
1 parent
3df4063
commit 3688ce6
Showing
4 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
interface ELEM | ||
x: integer | ||
end | ||
|
||
interface OBJ | ||
parent: OBJ? | ||
atr: ELEM -- if I change ELEM to {"x":integer}, I no longer get an error | ||
end | ||
|
||
local function f(o:OBJ) | ||
local parent = o.parent | ||
if parent then | ||
f({atr={x=2}}) -- isn't this structurally equivalent to OBJ? | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters