typst-0.9: test/typ/compiler/closure-04.out
--- parse tree ---
[ Comment
, SoftBreak
, Code
"typ/compiler/closure-04.typ"
( line 2 , column 2 )
(Block
(CodeBlock
[ Let (BasicBind (Just (Identifier "x"))) (Literal (Int 1))
, LetFunc
(Identifier "f")
[]
(Block
(CodeBlock
[ Let
(BasicBind (Just (Identifier "x")))
(Plus (Ident (Identifier "x")) (Literal (Int 2)))
, Ident (Identifier "x")
]))
, FuncCall
(Ident (Identifier "test"))
[ NormalArg (FuncCall (Ident (Identifier "f")) [])
, NormalArg (Literal (Int 3))
]
]))
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [✅]),
parbreak() })