Matching on a single map element gives an UnsupportedOperationException #773
Closed
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