Add some quotes to a few error messages
@@ -12,7 +12,7 @@ var (
ErrorSymbolAlreadyExists = newError(505, "A symbol already exists with the name '%v'")
ErrorIncorrectExprType = newError(506, "Expression has an incorrect type; expected '%v', got '%v'")
ErrorMemberNotAccessible = newError(507, "Member '%v' is not accessible (it is %v)")
- ErrorExpectedReturnExpr = newError(508, "Expected a return expression of type %v")
+ ErrorExpectedReturnExpr = newError(508, "Expected a return expression of type '%v'")
ErrorUnexpectedReturnExpr = newError(509, "Unexpected return expression; function has no return type (void)")
ErrorDuplicateLabel = newError(510, "Duplicate label '%v': %v")
ErrorUnknownJumpLabel = newError(511, "Unknown label '%v' used in the %v statement")
@@ -20,13 +20,15 @@ var (
ErrorIllegalObjectLiteralType = newError(513,
"The type '%v' may not be used as an object literal type; only records and interfaces are permitted")
ErrorMissingRequiredProperty = newError(514, "Missing required property '%v'")
- ErrorUnaryOperatorInvalidForType = newError(515, "The operator %v is invalid on operand type %v; expected %v")
+ ErrorUnaryOperatorInvalidForType = newError(515,
+ "The operator %v is invalid on operand type '%v'; expected '%v'")
ErrorUnaryOperatorInvalidForOperand = newError(516, "The operator %v is invalid on operand %v; expected %v")
ErrorUnaryOperatorMustBePrefix = newError(517, "The operator %v must be in a prefix position (not postfix)")
- ErrorBinaryOperatorInvalidForType = newError(518, "The operator %v is invalid on %v operand type %v; expected %v")
+ ErrorBinaryOperatorInvalidForType = newError(518,
+ "The operator %v is invalid on %v operand type '%v'; expected '%v'")
ErrorIllegalAssignmentLValue = newError(519, "Cannot assign to the target LHS expression")
ErrorIllegalNumericAssignmentLValue = newError(520, "Cannot perform numeric assignment %v on a non-numeric LHS")
- ErrorIllegalAssignmentTypes = newError(521, "Cannot assign a value of type %v to target of type %v")
+ ErrorIllegalAssignmentTypes = newError(521, "Cannot assign a value of type '%v' to target of type '%v'")
ErrorCannotInvokeNonFunction = newError(522, "Cannot invoke a non-function; type '%v' is not a function")
ErrorArgumentCountMismatch = newError(523, "Function expects %v arguments; got %v instead")
)
