Skip to content

Object strict literal assigment checking is omitted for the empty type #4463

Closed
@zpdDG4gta8XKpMCd

Description

@zpdDG4gta8XKpMCd

in #3823

interface A {
}
var a : A = { // valid code, but expected a problem in 1.6, since x, y, z don't belong to A 
    x: 1,
    y: 2,
    z: 3
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    By DesignDeprecated - use "Working as Intended" or "Design Limitation" instead

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions