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

Union of objects #10

@vkurchatkin

Description

@vkurchatkin

function test(c: { a: string } | { a: number }) {
c.a = 1;
}

var a = { a: 'foo' };

test(a);
a.a.toLowerCase();

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