Skip to content

[Errors] break/continue outside iteration/switch statements #53

Closed
@mhegazy

Description

@mhegazy
var x = 1;
break;
continue;

Expected:
'break' statement can only be used within an enclosing iteration or switch statement.
'continue' statement can only be used within an enclosing iteration statement.

Actual: no error
Error must be syntactic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions