mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 02:42:09 +00:00
Fix at error printing bug
This commit is contained in:
@@ -6138,7 +6138,10 @@ gb_internal bool evaluate_where_clauses(CheckerContext *ctx, Ast *call_expr, Sco
|
||||
}
|
||||
}
|
||||
|
||||
if (call_expr) error(call_expr, "at caller location");
|
||||
if (call_expr) {
|
||||
TokenPos pos = ast_token(call_expr).pos;
|
||||
error_line("%s at caller location\n", token_pos_to_string(pos));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user