Skip to content

ILSpy makes mistakes in logical conditions using bitwise operators instead of logical one #1545

Description

@greenozon

ILSpy version 5.0.0.4840-preview2

here is a self-descriptive picture
left pane - from dnSpy (OK), right- not OK (ILSpy)

image

as you might see - if there is a negative "!" operator before bool var - && (=OK) is used, otherwise a mistake

Metadata

Metadata

Assignees

No one assigned

    Labels

    C#DecompilerThe decompiler engine itselfEnhancementAreas for improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions