My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 158: Type.getClass fails when using an instance typed as interface
1 person starred this issue and may be notified of changes. Back to list
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

Powered by Google Project Hosting