You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code does not compile, with the error message
Found: Object with PolyFunction {...}
Required: List2Option
expectation
Would expect the compiler to accept it as a SAM implementation of List2Option, the same way it does with other irregular function types (as it does with dependant functions for example).
I will add that the following (quite unsuprisingly) does work, but this way forces you to use a pair of brackets on the apply method in List2Option
minimized code
This code does not compile, with the error message
Found: Object with PolyFunction {...}
Required: List2Option
expectation
Would expect the compiler to accept it as a SAM implementation of List2Option, the same way it does with other irregular function types (as it does with dependant functions for example).
I will add that the following (quite unsuprisingly) does work, but this way forces you to use a pair of brackets on the apply method in List2Option
The text was updated successfully, but these errors were encountered: