Open
Description
minimized code
val f: [A] => A => A = a => a
// same with:
val f: [A] => A => A = [A] => a => a
Weirdly, the error is reported as a "Syntax Error":
[error] -- [E081] Syntax Error: infer.scala:6:25
[error] 6 | val f: [A] => A => A = a => a
[error] | ^
[error] | Missing parameter type
[error] |
[error] | I could not infer the type of the parameter a.
[error] one error found