Skip to content

Parser errors when trying to cast ints to booleans #4646

@tillnagel

Description

@tillnagel

While running

boolean b = (boolean) 1;

gives the correct error message of "Cannot cast from int to boolean" the following erroneous statement:

boolean c = (boolean) 1 || (boolean) 1;

throws an unhandled exception in the editor (with the above error message), and on running a weird "23)" message.

Metadata

Metadata

Assignees

Labels

help wantedWe have very little time and would like some helppreprocessor

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