diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-17 16:32:48 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-17 16:32:48 +0100 |
| commit | 028632a3a10202ee21eaaf7ecf13ca7fe331106e (patch) | |
| tree | ecba2b74b52b2c94b8ccf63dc8099d8ef608081c /tests/typ/compiler/methods.typ | |
| parent | dd5f07eb9110cc5e19dcb4441743a323128426fc (diff) | |
Fix error handling after hashtag
Diffstat (limited to 'tests/typ/compiler/methods.typ')
| -rw-r--r-- | tests/typ/compiler/methods.typ | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/typ/compiler/methods.typ b/tests/typ/compiler/methods.typ index ae0945df..86faefbc 100644 --- a/tests/typ/compiler/methods.typ +++ b/tests/typ/compiler/methods.typ @@ -27,20 +27,20 @@ } --- -// Error: 2:4-2:17 type array has no method `fun` +// Error: 2:2-2:15 type array has no method `fun` #let numbers = () -#{ numbers.fun() } +#numbers.fun() --- -// Error: 2:4-2:45 cannot mutate a temporary value +// Error: 2:2-2:43 cannot mutate a temporary value #let numbers = (1, 2, 3) -#{ numbers.map(v => v / 2).sorted().map(str).remove(4) } +#numbers.map(v => v / 2).sorted().map(str).remove(4) --- -// Error: 2:4-2:20 cannot mutate a temporary value +// Error: 2:3-2:19 cannot mutate a temporary value #let numbers = (1, 2, 3) -#{ numbers.sorted() = 1 } +#(numbers.sorted() = 1) --- -// Error: 4-7 cannot mutate a constant -#{ box.push(1) } +// Error: 2-5 cannot mutate a constant +#box.push(1) |
