Skip to content

JSX4: compile error with ignored prop + prop with default value #5880

Closed
rescript-lang/syntax
#720
@cknitt

Description

@cknitt

Tested in JSX4 automatic mode: The following code

@react.component
let make = (~priority as _, ~text="Test") => React.string(text)

results in the error

The value text can't be found

/cc @mununki

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