summaryrefslogtreecommitdiff
path: root/tests/typ/code/ops-invalid.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/code/ops-invalid.typ')
-rw-r--r--tests/typ/code/ops-invalid.typ6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/typ/code/ops-invalid.typ b/tests/typ/code/ops-invalid.typ
index 12d2a2c3..ab53dd97 100644
--- a/tests/typ/code/ops-invalid.typ
+++ b/tests/typ/code/ops-invalid.typ
@@ -38,6 +38,12 @@
// Error: 14-22 cannot apply '+=' to integer and string
{ let x = 1; x += "2" }
+// Error: 13-14 expected argument list, found integer
+{ test with 2 }
+
+// Error: 3-4 expected function, found integer
+{ 1 with () }
+
---
// Bad left-hand sides of assignment.