mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-31 02:12:04 +00:00
Improve error message to "fix" #640
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user