mojo.app.Skin is a Class, but can’t have ExtendsType called on it, it seems?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
#Import "<std>" #Import "<mojo>" #Import "<reflection>" Using std.. Using mojo.. Function Main:void() Local ti:TypeInfo=Typeof<mojo.app.Skin> Print ti If ti.Kind="Class" If ti.ExtendsType(Typeof<int>) Print "Strange" End End |
Produces this output, with the error appearing on the ExtendsType line:
Class mojo.app.Skin
Type ‘Unknown@10519360 Ptr’ is not a class or interface type
This is hardly a problem – is easy to work around in my situation – but just in case it means anything sinister.
Edit – the code posted just shows what happens, I’m not specifically trying to do this in my own program 