Skip to content

Instantly share code, notes, and snippets.

@devboy
Created April 6, 2012 23:28
Show Gist options
  • Save devboy/2323928 to your computer and use it in GitHub Desktop.
Save devboy/2323928 to your computer and use it in GitHub Desktop.
haXe WTF?
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'
@devboy
Copy link
Author

devboy commented Apr 6, 2012

Makes sense ... gah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment