Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Type inference seems to stop at first object property #204

Open
spion opened this issue Feb 3, 2014 · 0 comments
Open

Type inference seems to stop at first object property #204

spion opened this issue Feb 3, 2014 · 0 comments

Comments

@spion
Copy link

spion commented Feb 3, 2014

Example to reproduce:

let f a = a.x + a.y
f {x: 1, z: 2}

Version 0.2.2 from npm compiles this to

var f = function (a) {
    return a.x + a.y;
};
f({
    'x': 1,
    'z': 2
});//@ sourceMappingURL=test.js.map
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant