Closed wiwa closed 5 years ago
val foo = (t: (A, B)) => () should be ascribed foo: ((A, B)) => Unit instead of foo: (A, B) => Unit, i.e. extra parentheses are necessary when dealing with functions of a single tuple argument.
val foo = (t: (A, B)) => ()
foo: ((A, B)) => Unit
foo: (A, B) => Unit
val foo = (t: (A, B)) => ()
should be ascribedfoo: ((A, B)) => Unit
instead offoo: (A, B) => Unit
, i.e. extra parentheses are necessary when dealing with functions of a single tuple argument.