rec type spooky
Spooky{ spook : spooky -> int }
fun spookMe(s : spooky) : total int
match(s)
Spooky(f) -> f(s)
fun loop() : total int // no div effect!
spookMe(Spooky(spookMe))
fun main()
println(loop())
Expected behaviour is that the div effect is inferred. Heuristically, this could happen anytime rec type is used.
Koka v3.1.1 accepts the following program:
Expected behaviour is that the
div
effect is inferred. Heuristically, this could happen anytimerec type
is used.