mirror of
https://github.com/typst/typst
synced 2025-05-20 03:55:29 +08:00
15 lines
306 B
Typst
15 lines
306 B
Typst
// Test that a space after a named parameter is permissible.
|
|
// https://github.com/typst/typst/issues/3502
|
|
// Ref: false
|
|
|
|
---
|
|
#let f( param : v ) = param
|
|
#test(f( param /* ok */ : 2 ), 2)
|
|
|
|
---
|
|
#let ( key : /* hi */ binding ) = ( key: "ok" )
|
|
#test(binding, "ok")
|
|
|
|
---
|
|
#test(( key : "value" ).key, "value")
|