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

+ 5 - 3
src/mx2cc/class.monkey2

@@ -277,9 +277,11 @@ Class ClassType Extends Type
 			
 			If cdecl.IsExtension
 				
-				For Local ctype:=Eachin transFile.extclasses
-					If ctype.cdecl.ident=cdecl.ident Throw New SemantEx( "Duplicate type extension '"+cdecl.ident+"'" )
-				Next
+				If Not IsGenInstance
+					For Local ctype:=Eachin transFile.extclasses
+						If ctype.cdecl.ident=cdecl.ident Throw New SemantEx( "Duplicate type extension '"+cdecl.ident+"'" )
+					Next
+				Endif
 				
 				transFile.extclasses.Add( Self )
 			Else