Skip to content

Redundant X | X rules are allowed and mismanaged. #126

Open
@eddyb

Description

@eddyb

This is a testcase that demonstrates the problem (in tests/basic.rs):

    multiple {
        A = X:"x" | Y:"x";
    }:
    A("x") => "\
1:1-1:2 => A::X(
    1:1-1:2,
)";

The output is the current one and is incorrect: both sides are "x" and should match or the situation should be statically denied. But only the first one is observed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions