Issue 158: Type.getClass fails when using an instance typed as interface
Status:  Fixed
Owner: ----
Closed:  Feb 2012
Reported by hof...@gmail.com, Feb 29, 2012
If you have SomeTestClass which implement SomeTestInterface this happens:

var testInstance1 = new SomeTestClass();
var testInstance2:SomeTestInterface = testInstance1;
trace(Type.getClass(testInstance1));
trace(Type.getClass(testInstance2));

first trace is "SomeTestClass", second trace is "null". but both should return "SomeTestClass". This worked in 2.08.0.

NME Testproject:
http://dl.dropbox.com/u/27447235/type_test.zip
Feb 29, 2012
Project Member #1 gameh...@gmail.com
This should now be fixed with hxcpp SVN - actually I find it a bit strange that it ever worked.  Thanks for reporting.

Hugh
Status: Fixed