2
0
Эх сурвалжийг харах

Fixed 'struct extends...' not generating an error.

Mark Sibly 8 жил өмнө
parent
commit
9bcd842c48

+ 2 - 0
src/mx2cc/parser.monkey2

@@ -344,6 +344,8 @@ Class Parser
 			
 			If CParse( "extends" )
 			
+				If decl.kind="struct" Error( "Structs cannot use 'Extends'" )
+			
 				If flags & DECL_EXTENSION Error( "Extension classes cannot use 'Extends'" )
 				
 				If decl.kind="interface" Or decl.kind="protocol"