diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/compiler/for.typ | 2 | ||||
| -rw-r--r-- | tests/typ/compiler/return.typ | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/typ/compiler/for.typ b/tests/typ/compiler/for.typ index 822f7423..f63b870e 100644 --- a/tests/typ/compiler/for.typ +++ b/tests/typ/compiler/for.typ @@ -33,7 +33,7 @@ #for v in (1, 2, 3, 4, 5, 6, 7) [#if v >= 2 and v <= 5 { repr(v) }] // Map captured arguments. -#let f1(..args) = args.positional().map(repr) +#let f1(..args) = args.pos().map(repr) #let f2(..args) = args.named().pairs((k, v) => repr(k) + ": " + repr(v)) #let f(..args) = (f1(..args) + f2(..args)).join(", ") #f(1, a: 2) diff --git a/tests/typ/compiler/return.typ b/tests/typ/compiler/return.typ index 0eea394e..779a56dd 100644 --- a/tests/typ/compiler/return.typ +++ b/tests/typ/compiler/return.typ @@ -57,7 +57,7 @@ // Test that the expression is evaluated to the end. #let sum(..args) = { let s = 0 - for v in args.positional() { + for v in args.pos() { s += v } s |
