Skip to content

Matching on a single map element gives an UnsupportedOperationException #773

Closed
@joukestoel

Description

I would like to write a function definition containing a match on a map with a single element. Doing this however results in a UnsupportedOperationException when importing the module.

For example:

bool matched( (key:val) ) = true;

gives an UnsupportedOperationException when importing

Side note
Writing the code as follows:

bool matched( (key:_:val:_) ) = true;

gives an Ambiguous code error

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions