koka-lang / koka

Koka language compiler and interpreter
http://koka-lang.org
Other
3.16k stars 151 forks source link

Unclear error message "error: identifier .Hnd-div cannot be found" #385

Closed chtenb closed 5 months ago

chtenb commented 7 months ago

There is no identifier .Hnd-div in my code, so it's unclear what this refers to for me. It occurs in the context of an effect rec

Simplified reproduction:

pub rec effect parse
  fun current-input() : sslice

pub fun parse-safe( input0 : sslice)
  var input := input0
  handle p 
    fun current-input()  
      input