haxe compiler error on c# target

21 views
Skip to first unread message

oleg karasev

unread,
Jan 24, 2014, 1:46:43 AM1/24/14
to haxe...@googlegroups.com
It is the right destignation for this request? Or I should post it in another place?
The problem is that haxe compiler generates error when compile at c# target:

extern class A {
public function new();
}

class B extends A {
public function new (some:Int=0) {
super();
}
}

src/Main.hx:334: lines 334-336 : Types that derive from a native class must have its super() call as the first statement in the constructor

The reason is the default value (some:Int=0) if I type (some:Int) all compiles fine.

Dan Korostelev

unread,
Jan 24, 2014, 2:20:09 AM1/24/14
to haxe...@googlegroups.com
Please, post an issue on the github tracker: https://github.com/HaxeFoundation/haxe/issues/new

пятница, 24 января 2014 г., 10:46:43 UTC+4 пользователь oleg karasev написал:
Reply all
Reply to author
Forward
0 new messages