Skip to content

Boolean operations on non-boolean literals should cause compiler warnings #1290

Open
@ajpaon

Description

@ajpaon

I accidentally wrote a bit of code that looks like this:

var myString = 'string1' || 'string2';

This ought to be caught at compile time, as myString will never have a value of 'string2'.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions