From 8802a5d740d6cff29e473e7e0507b6a6d40a55e4 Mon Sep 17 00:00:00 2001 From: _ov4 Date: Thu, 22 Oct 2026 15:04:13 +0000 Subject: fix(codegen): name both operand types in invalid operator diagnostics Updates the operator-global-errors and string-type-mismatch expectations to the new "Operator X cannot be applied to A and B" wording. Co-Authored-By: Claude Sonnet 5.5 --- tests/iii/operator-global-errors/case.json | 2 +- tests/iii/string-type-mismatch/case.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/iii/operator-global-errors/case.json b/tests/iii/operator-global-errors/case.json index eeb9965..a267007 100644 --- a/tests/iii/operator-global-errors/case.json +++ b/tests/iii/operator-global-errors/case.json @@ -5,7 +5,7 @@ "line": 12 }, { - "reason": "Operator \\+ cannot be applied to a record", + "reason": "Operator \\+ cannot be applied to Box and INTEGER", "line": 13 }, { diff --git a/tests/iii/string-type-mismatch/case.json b/tests/iii/string-type-mismatch/case.json index 975c57c..3471178 100644 --- a/tests/iii/string-type-mismatch/case.json +++ b/tests/iii/string-type-mismatch/case.json @@ -1,7 +1,7 @@ { "errors": [ { - "reason": "Operator = cannot be applied to a record value \\(type STRING\\)", + "reason": "Operator = cannot be applied to STRING and INTEGER", "line": 2 } ] -- cgit v1.3.1-4-g156e