summaryrefslogtreecommitdiff
path: root/tests/typ/code/ops-invalid.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-10-25 13:34:49 +0200
committerLaurenz <laurmaedje@gmail.com>2021-10-25 13:38:32 +0200
commit3968181622694c4a15ae336049439b328649bca0 (patch)
tree979093e93b49bfde47e54bc4475cedf24d12e3d8 /tests/typ/code/ops-invalid.typ
parentadf52a873f0cdff310c236998fc5018a886b339b (diff)
Replace `..` syntax with `range` function
Diffstat (limited to 'tests/typ/code/ops-invalid.typ')
-rw-r--r--tests/typ/code/ops-invalid.typ6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/typ/code/ops-invalid.typ b/tests/typ/code/ops-invalid.typ
index 1355181a..91dd576f 100644
--- a/tests/typ/code/ops-invalid.typ
+++ b/tests/typ/code/ops-invalid.typ
@@ -53,7 +53,7 @@
---
{
let x = 2
- for _ in 0..61 {
+ for _ in range(61) {
x *= 2
}
// Error: 4-18 cannot repeat this string 4611686018427387904 times
@@ -73,10 +73,6 @@
{ 1 with () }
---
-// Error: 3-10 cannot apply '..' to integer and string
-{ 1 .. "" }
-
----
// Error: 3-6 cannot access this expression mutably
{ (x) = "" }