Skip to content

true == false - cannot be applied to types 'false' and 'true'. #11178

@cevek

Description

@cevek

TypeScript Version: Version 2.1.0-dev.20160927

Code

const a = false;
const b = a === true; //  Operator '===' cannot be applied to types 'false' and 'true'.
const c = true === false; // that is ok

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions