Browse Source

Fixed 'superclass has not default ctor' class extension issue..

Mark Sibly 8 years ago
parent
commit
42867aafe7
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/mx2cc/class.monkey2

+ 1 - 2
src/mx2cc/class.monkey2

@@ -273,14 +273,13 @@ Class ClassType Extends Type
 				If func.ftype.argTypes Continue
 				hasDefaultCtor=True
 			Next
-		Else
+		Else If Not cdecl.IsExtension
 			If superType And Not superType.hasDefaultCtor
 				Try
 					Throw New SemantEx( "Super class '"+superType.Name+"' has no default constructor" )
 				Catch ex:SemantEx
 				End
 			Endif
-			
 			hasDefaultCtor=True
 		Endif