Skip to content

Incorrect control flow analysis for typeof x == undefined  #14937

Closed

Description

@cevek

Example from real bug

var x: number | undefined;
if (typeof x !== undefined) {
    var y = x + 1; // no error, but should be
}

Activity

  1. cevek commented on Mar 30, 2017

    @cevek
    Author

    Actually not a bug, just something happens with vscode

  2. cevek commented on Jun 27, 2017

    @cevek
    Author

    Same things have happened in the complier #16663

  3. locked and limited conversation to collaborators on Jun 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalRelates to another program, environment, or user action which we cannot control.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions