X Tutup
Skip to content

Switch cases should share scope #698

@ark120202

Description

@ark120202
switch (null!) {
    case 1:
        let foo: number | undefined = 1;
    case 2:
        foo = 2;
    case 3:
        if (foo !== undefined) {
            console.log(foo + 1);
        }
}

Cases probably shouldn't be wrapped in do blocks?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup