summaryrefslogtreecommitdiff
path: root/tests/typ/code
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-08 18:56:52 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-08 18:56:52 +0200
commitc5635d8a3f45865619d66bc9e296da7d9e9efa5a (patch)
tree3dcfa1db01f0c129ebfd1ac66a255290b612d033 /tests/typ/code
parent859275b17b14f7e558710cbdf27ace33ca591c66 (diff)
Handle missing arguments to with expr
Diffstat (limited to 'tests/typ/code')
-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.