Got answer on IRC: function types use closure call convention by default. It 
works by changing it to nimcall
    
    
    type Fid[A] = proc(x: A): A {.noSideEffect, nimcall.}
    
    
    Run

Reply via email to