Created
September 21, 2010 18:18
-
-
Save fredreichbier/590196 to your computer and use it in GitHub Desktop.
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
A: cover { | |
} | |
AA: cover from A { | |
} | |
AAA: cover from AA extends AA { | |
hello: func { | |
"hello" println() | |
} | |
} | |
extend AA { | |
huhu: func { | |
"huhu" println() | |
} | |
} | |
main: func { | |
a: A | |
a as AA huhu() | |
a as AAA huhu() // <- fails | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment