Skip to content

Type checker complains incorrectly about bound variable in disjunction in reducer #2735

@tvdstorm

Description

@tvdstorm

Give the following code:

void bug1() {
    list[int] xs = [];
    ( true | it && (false || y := z) | int y <- xs, int z <- xs );
}

The type checker complains about (false || y := z)
with the error message: "Variable(s) y should be introduced on both sides of || operator".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions