summaryrefslogtreecommitdiff
path: root/tests/typ/compiler/ops-invalid.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/compiler/ops-invalid.typ')
-rw-r--r--tests/typ/compiler/ops-invalid.typ4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/typ/compiler/ops-invalid.typ b/tests/typ/compiler/ops-invalid.typ
index 3ab62929..2af3b767 100644
--- a/tests/typ/compiler/ops-invalid.typ
+++ b/tests/typ/compiler/ops-invalid.typ
@@ -101,6 +101,10 @@
#((x) = "")
---
+// Error: 4-5 unknown variable: x
+#((x,) = (1,))
+
+---
// Error: 3-8 cannot mutate a temporary value
#(1 + 2 += 3)