Skip to content

Avoid equivalent mutation to unsigned int #240

@JonathanFoo0523

Description

Currently, for unsigned integer a, Dredd allow the mutation:

a != 0

to

a > 0

Both expressions are equivalent. Since Dredd has the type information when traversing the AST, it should be possible to disallow such mutation.

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions