In Dotty, a function literal's parameter clause with one typed parameter must be surrounded by parenthesis.
Before:
call { a: Int => a }
After:
call { (a: Int) => a }