diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-07-08 18:56:52 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-07-08 18:56:52 +0200 |
| commit | c5635d8a3f45865619d66bc9e296da7d9e9efa5a (patch) | |
| tree | 3dcfa1db01f0c129ebfd1ac66a255290b612d033 /tests/typ/code/ops-invalid.typ | |
| parent | 859275b17b14f7e558710cbdf27ace33ca591c66 (diff) | |
Handle missing arguments to with expr
Diffstat (limited to 'tests/typ/code/ops-invalid.typ')
| -rw-r--r-- | tests/typ/code/ops-invalid.typ | 6 |
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. |
