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!
This commit is contained in:
James Shubin
2025-02-07 17:17:02 -05:00
parent f51a1200d1
commit a064a87ecd

View File

@@ -0,0 +1,14 @@
-- 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