mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-20 12:44:59 -07:00
Add range-based error messages to -verbose-errors
Example: Cannot convert '(1 + 2)' to 'untyped bool' from 'untyped integer' x := (1 + 2) * true; ^~~~~~^
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ bool is_diverging_stmt(Ast *stmt) {
|
||||
return false;
|
||||
}
|
||||
if (expr->CallExpr.proc->kind == Ast_BasicDirective) {
|
||||
String name = expr->CallExpr.proc->BasicDirective.name;
|
||||
String name = expr->CallExpr.proc->BasicDirective.name.string;
|
||||
return name == "panic";
|
||||
}
|
||||
Ast *proc = unparen_expr(expr->CallExpr.proc);
|
||||
|
||||
Reference in New Issue
Block a user