| Issue 148: | Reflect.hasField is broken | |
| 2 people starred this issue and may be notified of changes. | Back to list |
It seems that in the generated code __HasField isn't implemented:
class Test1
{
public function new()
{
trace(Reflect.hasField(this, "test")); //traces false
}
private var test:Int;
public static function main(): Void
{
var m: Test1 = new Test1();
}
}
Feb 6, 2012
#1
cristi.b...@gmail.com
Feb 9, 2012
Hi, This is how neko works (ie, anon objects only). I m prepared to have a go at fixing it, but I would like a definitive spec on how it is supposed to work. Perhaps we could take this up with Nicolas.
Status:
WontFix
|