Browse Source

Improve error message to "fix" #640

gingerBill 4 years ago
parent
commit
fdd0c726bc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/check_expr.cpp

+ 1 - 1
src/check_expr.cpp

@@ -5730,7 +5730,7 @@ void check_expr_with_type_hint(CheckerContext *c, Operand *o, Ast *e, Type *t) {
 		break;
 		break;
 	case Addressing_Type:
 	case Addressing_Type:
 		if (t == nullptr || !is_type_typeid(t)) {
 		if (t == nullptr || !is_type_typeid(t)) {
-			err_str = "is not an expression but a type";
+			err_str = "is not an expression but a type, in this context it is ambiguous";
 		}
 		}
 		break;
 		break;
 	case Addressing_Builtin:
 	case Addressing_Builtin: