2
0
Mark Sibly 7 жил өмнө
parent
commit
fc9ee22f0f

+ 3 - 4
src/mx2cc/test.monkey2

@@ -1,9 +1,6 @@
 
 
 Namespace test
 Namespace test
 
 
-'#Import "<std>"
-
-'#Reflect std.graphics
 #Reflect test
 #Reflect test
 
 
 Function InvokeMethod:Variant( name:String,instance:Object,args:Variant[]=Null )
 Function InvokeMethod:Variant( name:String,instance:Object,args:Variant[]=Null )
@@ -36,6 +33,8 @@ Function InvokeMethod:Variant( name:String,instance:Object,args:Variant[]=Null )
 		
 		
 	Wend
 	Wend
 	
 	
+	'search extensions...
+	
 	Return Null
 	Return Null
 End
 End
 
 
@@ -77,7 +76,7 @@ Function Main()
 	For Local type:=Eachin TypeInfo.GetTypes()
 	For Local type:=Eachin TypeInfo.GetTypes()
 		
 		
 		'look for extension
 		'look for extension
-		If type.Kind="Class Extension" And type.Name="test.C Extension"
+		If type.Kind="Class Extension" And type.SuperType=Typeof(c)
 			
 			
 			Print "Found extension!"
 			Print "Found extension!"