summaryrefslogtreecommitdiff
path: root/tests/typ/compiler/ops-invalid.typ
diff options
context:
space:
mode:
authorLeedehai <18319900+Leedehai@users.noreply.github.com>2023-04-19 07:26:55 -0400
committerGitHub <noreply@github.com>2023-04-19 13:26:55 +0200
commitdc3017955a67e5509f6bc33cb9b4833806da4c22 (patch)
tree364304f23268107cb0443fc0037a86bd4136d9ef /tests/typ/compiler/ops-invalid.typ
parente4b09d417e9bfc2c0011299272f33c6861e96a6f (diff)
Give more specific error messages (#881)
Diffstat (limited to 'tests/typ/compiler/ops-invalid.typ')
-rw-r--r--tests/typ/compiler/ops-invalid.typ8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/typ/compiler/ops-invalid.typ b/tests/typ/compiler/ops-invalid.typ
index 8ccbb8b7..3ab62929 100644
--- a/tests/typ/compiler/ops-invalid.typ
+++ b/tests/typ/compiler/ops-invalid.typ
@@ -97,7 +97,7 @@
}
---
-// Error: 4-5 unknown variable
+// Error: 4-5 unknown variable: x
#((x) = "")
---
@@ -110,15 +110,15 @@
#(not x = "a")
---
-// Error: 7-8 unknown variable
+// Error: 7-8 unknown variable: x
#(1 + x += 3)
---
-// Error: 3-4 unknown variable
+// Error: 3-4 unknown variable: z
#(z = 1)
---
-// Error: 3-7 cannot mutate a constant
+// Error: 3-7 cannot mutate a constant: rect
#(rect = "hi")
---