Files
mgmt/lang/interpret_test/TestAstFunc2/ycombinator.txtar
James Shubin a064a87ecd lang: Add a weird test case
Mark Smith was concerned we might not handle this case correctly. It
seems we do in fact catch this scenario, so it's not an issue. Yay!
2025-02-07 17:57:36 -05:00

15 lines
208 B
Plaintext

-- main.mcl --
import "fmt"
$y = func($fn) {
$fn($fn)
}(
func($fn) {
$fn($fn)
}
)
test [fmt.printf("y: %v", $y),] {}
-- OUTPUT --
# err: errUnify: unify error with: param(fn): directly in the same set