Browse Source

Error msg fix.

Mark Sibly 7 years ago
parent
commit
49ef1277eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/mx2cc/parser.monkey2

+ 1 - 1
src/mx2cc/parser.monkey2

@@ -189,7 +189,7 @@ Class Parser
 				Case "field"
 					If flags & DECL_IFACEMEMBER Error( "Interfaces cannot have fields" )
 					If flags & DECL_EXTENSION Error( "Type extensions cannot have fields" )
-					If fileScope Error( "Fields must be declared within a class, struct or interface" )
+					If fileScope Error( "Fields may only be declared within a class or struct." )
 					ParseVars( decls,flags )
 				Case "local"
 					Error( "Locals can only be declared in a statement block" )