Created
April 6, 2012 23:28
-
-
Save devboy/2323928 to your computer and use it in GitHub Desktop.
haXe WTF?
This file contains hidden or 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
class A | |
{ | |
} | |
class B extends A | |
{ | |
} | |
class HaxeTest | |
{ | |
static function main() | |
{ | |
function foo(bar:Array<A>) | |
return bar; | |
foo(new Array<B>()); | |
} | |
} | |
// ./HaxeTest.hx:15: characters 6-20 : Array<B> should be Array<A> | |
// ./HaxeTest.hx:15: characters 6-20 : B should be A | |
// ./HaxeTest.hx:15: characters 6-20 : For function argument 'bar' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Makes sense ... gah