Skip to content

Gate MVP example conflicts with BNF #480

Closed
@mkatychev

Description

@mkatychev

The feature gate example lists a gate as having both a version and feature field: @since(version = 0.2.2, feature = fancy-foo)
https://github.com/WebAssembly/component-model/blob/main/design/mvp/WIT.md#feature-gates

However the BNF for gate syntax lists feature-field as only being used by an @unstable gate:

gate ::= gate-item*
gate-item ::= unstable-gate
            | since-gate
            | deprecated-gate

unstable-gate ::= '@unstable' '(' feature-field ')'
since-gate ::= '@since' '(' version-field ')'
deprecated-gate ::= '@deprecated' '(' version-field ')'

feature-field ::= 'feature' '=' id
version-field ::= 'version' '=' <valid semver>

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