[haXe] Bug: extend and static problem
Petersson, Tobias
Tobias.Petersson at laerdal.dk
Thu Apr 12 10:58:51 CEST 2007
Just noticed a compiler problem.
I extended UIComponent which I later found out has the variable minWidth
var minWidth : Float;
But before I found out I had code that looked something like this...
class Foo extends mx.core.UIComponent {
//My own declaration as a static float
private static var minWidth : Float = 100.0;
public function new() {
super();
// This will trace 0 because the variable in UIComponent is 0
trace (minWidth );
}
...
}
But the compiler doesn't complain...
Best of regards
Tobias
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070412/bfba32e4/attachment.htm
More information about the Haxe
mailing list