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

Type inference seems to stop at first object property #204

@spion

Description

@spion

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions