Skip to content

Unsound optimization for disjunctions? #4784

Closed
@odersky

Description

@odersky

#4616 failed in test-optimized, until commit 91ca4ba

My conjecture is that the optimizer rewrites E || true to true even if E is side-effecting. This caused several tests under test-optimized to fail. once I changed the code to { E; true } everything compiles fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions