浏览代码

Error msg fix.

Mark Sibly 7 年之前
父节点
当前提交
49ef1277eb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/mx2cc/parser.monkey2

+ 1 - 1
src/mx2cc/parser.monkey2

@@ -189,7 +189,7 @@ Class Parser
 				Case "field"
 				Case "field"
 					If flags & DECL_IFACEMEMBER Error( "Interfaces cannot have fields" )
 					If flags & DECL_IFACEMEMBER Error( "Interfaces cannot have fields" )
 					If flags & DECL_EXTENSION Error( "Type extensions 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 )
 					ParseVars( decls,flags )
 				Case "local"
 				Case "local"
 					Error( "Locals can only be declared in a statement block" )
 					Error( "Locals can only be declared in a statement block" )