Closed
Description
The following code compiles using Scala:
object abc {
trait Test0
trait Test1 { def apply(f: Int => Int): Unit }
def v: Test0 = ???
def v[T]: Test1 = ???
v[Any] { v => v }
}
Dotty produces the following compiler error:
8 | v[Any] { v => v }
| ^
|missing parameter type
|
|The argument types of an anonymous function must be fully known. (SLS 8.5)
|Expected type: ?
|Missing type for parameter v