Skip to content

.default operator does not work on choices #516

@guenzel-kinexon

Description

@guenzel-kinexon

git revision: 68ad948

The following definition generates a parser errror:

FooChoice = FooA / FooB / FooC
FooA = 1
FooB = 2
FooC = 3

SomeStructure = (
   foo: ?FooChoice .default FooA
)

replacing the definition with an inline definition

SomeStructure = (
   foo: ?((FooA: 1) / (FooB: 2) / (FooC: 3)) .default FooA
)

yields the same error. Also replacing the default value with the numerical representation (1 in this case).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions