@@ -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"