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
3.0.0RC1
If you're not sure what version you're using, run print scalaVersion from sbt
(if you're running scalac manually, use scalac -version instead).
Minimized example
// This is OKclassFunctorImpl[Generic1[T] <:Iterable[T]]{}
classHKT3_1[Functor[Generic2[T]<:Set[T]]]{}
varh=newHKT3_1[FunctorImpl]();
// This is has errorclassFunctorImpl[Generic1[T] <:Iterable[T]]{}
classHKT3_1[Functor[Generic2[T<:String]<:Set[T]]]{}
varh=newHKT3_1[FunctorImpl]();
// Error: Type argument FunctorImpl does not conform to upper bound [Generic2[T] <: Set[T]] =>> Any
Output
No output
Expectation
I am not sure, maybe [Generic2[T<:String] <: Set[T]] =>> Any? However, current error message is not enough.
And it would be nice to explain why it is not work in detailed.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.0.0RC1
If you're not sure what version you're using, run
print scalaVersion
from sbt(if you're running scalac manually, use
scalac -version
instead).Minimized example
Output
No output
Expectation
I am not sure, maybe
[Generic2[T<:String] <: Set[T]] =>> Any
? However, current error message is not enough.And it would be nice to explain why it is not work in detailed.
The text was updated successfully, but these errors were encountered: