Skip to content

SelectExpression as a selector for another SelectExpression #416

@SirNickolas

Description

@SirNickolas
test = {{0 ->
    [0] x
   *[other] y
} ->
    [x] It’s X.
   *[other] It’s not X.
}

According to the spec (abstract.js), this is well-formed yet not valid Fluent. However, this case is not enforced in getExpression, and thus the code is correctly parsed and evaluates to It’s X..

I’m currently implementing Fluent in D Programming Language and wonder whether it is a bug in the spec or the implementation (i.e. whether I need to support it or not). Could you clarify it, please?

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