I get a really funny error from IntelliJ, haven’t debugged it yet.
The error from the scala compiler is more informative.
I get a really funny error from IntelliJ, haven’t debugged it yet.
The error from the scala compiler is more informative.
IntelliJ doesn’t really display the error in a usefull way, but when you look at the actual error message, you see that you use a Tuple2, instead of two parameters.
((A, B)) => C instead of (A, B) => C
Exactly. Looking at the compiler message is much more helpful than the IntelliJ message. Presumably, IntelliJ tried unsuccessfully to remove useless parens.