pufuwozu/roy — Issue #97: Problem using typeinference with '!' access
Author: tokland
Created: 2012-01-23 18:29:27+00:00
State: open

Shouldn't this work?

let double x = 2*x
let f xs f = g (xs ! 0)
console.log (f [1,2,3] double)

Error: Type error: [Number] is not {[object Object]: 'by}
at /var/abs/local/roy/src/typeinference.js:45:19
at /var/abs/local/roy/src/typeinference.js:56:13