typst-0.1.0.0: test/typ/compiler/return-01.typ
// Test return with joining.
#let f(x) = {
"a"
if x == 0 {
return "b"
} else if x == 1 {
"c"
} else {
"d"
return
"e"
}
}
#test(f(0), "b")
#test(f(1), "ac")
#test(f(2), "ad")