Skip to content

Crash on assertion predicate with optional argument #871

Closed
@DanielRosenwasser

Description

@DanielRosenwasser
Member
export function assertWeird(value?: string): asserts value {
}

assertWeird();
assertWeird("hello");

Note that order of the calls is important to reproduce the issue.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    Participants

    @DanielRosenwasser@ahejlsberg

    Issue actions

      Crash on assertion predicate with optional argument · Issue #871 · microsoft/typescript-go