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
{{ message }}
This repository has been archived by the owner on Sep 1, 2020. It is now read-only.
classStringSingletonList[T<:SingletonwithString](values: List[T])
newStringSingletonList(List("a", "a"))
// inferred type arguments [String] do not conform to class StringSingletonList's type parameter bounds [T <: Singleton with String]
Strangely, the argument's type is inferred correctly:
The following example yields a type mismatch:
Strangely, the argument's type is inferred correctly:
These two declarations can be used as a workaround:
The text was updated successfully, but these errors were encountered: