Mark Sibly 7 anni fa
parent
commit
fc9ee22f0f
1 ha cambiato i file con 3 aggiunte e 4 eliminazioni
  1. 3 4
      src/mx2cc/test.monkey2

+ 3 - 4
src/mx2cc/test.monkey2

@@ -1,9 +1,6 @@
 
 Namespace test
 
-'#Import "<std>"
-
-'#Reflect std.graphics
 #Reflect test
 
 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
 	
+	'search extensions...
+	
 	Return Null
 End
 
@@ -77,7 +76,7 @@ Function Main()
 	For Local type:=Eachin TypeInfo.GetTypes()
 		
 		'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!"