Skip to content

Expression is never null with !!, but can be null #1658

Open
@torch2424

Description

@torch2424

Hello!

So I found this super small, low priority bug. Where !! can be used to force a variable to not be null to skip null checking, however, the compiler says the expression cannot be null, but will crash if it is. So maybe it's just a better error message? 🤔

Assigning to myself cause I could totally figure this out, once I get the time 😄

Sandbox Demo Link

Screenshot from 2021-02-02 16-26-16
Screenshot from 2021-02-02 16-26-03
Screenshot from 2021-02-02 16-25-39
Screenshot from 2021-02-02 16-25-23
Screenshot from 2021-02-02 16-25-09

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions