From 84cdc85ca7494368e7ce2039fcef06ac2d3bd2ed Mon Sep 17 00:00:00 2001 From: Laurenz Date: Wed, 17 Feb 2021 23:07:28 +0100 Subject: =?UTF-8?q?Refresh=20parser=20=F0=9F=8C=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/lang/typ/expr-invalid.typ | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/lang/typ/expr-invalid.typ') diff --git a/tests/lang/typ/expr-invalid.typ b/tests/lang/typ/expr-invalid.typ index 329a2616..f760ae31 100644 --- a/tests/lang/typ/expr-invalid.typ +++ b/tests/lang/typ/expr-invalid.typ @@ -35,22 +35,22 @@ // Error: 1:31-1:39 cannot divide integer by length {(1 + "2", 40% - 1, 2 * true, 3 / 12pt)} -// Error: 15-23 cannot apply '+=' to integer and string +// Error: 14-22 cannot apply '+=' to integer and string { let x = 1; x += "2" } --- // Bad left-hand sides of assignment. -// Error: 1:3-1:6 cannot assign to this expression +// Error: 3-6 cannot assign to this expression { (x) = "" } -// Error: 1:3-1:8 cannot assign to this expression +// Error: 3-8 cannot assign to this expression { 1 + 2 += 3 } -// Error: 1:3-1:4 unknown variable +// Error: 3-4 unknown variable { z = 1 } -// Error: 1:3-1:6 cannot assign to a constant +// Error: 3-6 cannot assign to a constant { box = "hi" } // Works if we define box beforehand -- cgit v1.2.3