From c5635d8a3f45865619d66bc9e296da7d9e9efa5a Mon Sep 17 00:00:00 2001 From: Laurenz Date: Thu, 8 Jul 2021 18:56:52 +0200 Subject: Handle missing arguments to with expr --- tests/typ/code/ops-invalid.typ | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/typ/code') 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. -- cgit v1.2.3