You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
objectabc {
traitTest0traitTest1 { defapply(f: Int=>Int):Unit }
defv:Test0=???defv[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
The text was updated successfully, but these errors were encountered:
8 | v[Any] { v => v }
| ^
| None of the overloaded alternatives of method v in object abc with types
| [T] => abc.Test1
| => abc.Test0
| match type arguments [Any] and arguments (? => ?)
The following code compiles using Scala:
Dotty produces the following compiler error:
The text was updated successfully, but these errors were encountered: