summaryrefslogtreecommitdiff
path: root/tests/lang/typ/expr-invalid.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-02-17 23:07:28 +0100
committerLaurenz <laurmaedje@gmail.com>2021-02-18 15:06:00 +0100
commit84cdc85ca7494368e7ce2039fcef06ac2d3bd2ed (patch)
tree4820cfbd853fd3e98953f3a23aa398f29761ab53 /tests/lang/typ/expr-invalid.typ
parente143fd36efaabfcfb42823fe5f7a25dd6de4a960 (diff)
Refresh parser 🌊
Diffstat (limited to 'tests/lang/typ/expr-invalid.typ')
-rw-r--r--tests/lang/typ/expr-invalid.typ10
1 files changed, 5 insertions, 5 deletions
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