diff options
| author | gingerBill <bill@gingerbill.org> | 2021-05-12 23:12:20 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-05-12 23:12:20 +0100 |
| commit | fdd0c726bc1b0ff3978ead267001e81bda736673 (patch) | |
| tree | c6731f74475148044c45d66b7713a826a650dc35 /src | |
| parent | da9cabc3344900059d0837729e54e09e58089ae9 (diff) | |
Improve error message to "fix" #640
Diffstat (limited to 'src')
| -rw-r--r-- | src/check_expr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp index 26c7983de..ddf2a3aed 100644 --- a/src/check_expr.cpp +++ b/src/check_expr.cpp @@ -5730,7 +5730,7 @@ void check_expr_with_type_hint(CheckerContext *c, Operand *o, Ast *e, Type *t) { break; case Addressing_Type: 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; case Addressing_Builtin: |