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
$ dotc Map.scala
warning: encountered F-bounded higher-kinded typeparametersfortypescala$collection$generic$GenMapFactory$$CC; assuming they are invariant
warning: encountered F-bounded higher-kinded typeparametersfortypescala$collection$generic$MapFactory$$CC; assuming they are invariant
warning: encountered F-bounded higher-kinded typeparametersfortypescala$collection$generic$ImmutableMapFactory$$CC; assuming they are invariant
Map.scala:79:error: Type argument [HK$0, +HK$1] => scala.collection.immutable.Map[HK$0, HK$1] does not conform to upper bound [HK$0, +HK$1] =><:
scala.collection.immutable.Map[HK$0, HK$1] &
scala.collection.immutable.MapLike[HK$0, HK$1,
LazyRef([HK$0, +HK$1] => scala.collection.immutable.Map[HK$0, HK$1])[
HK$0
, HK$1]
]
objectMapextendsImmutableMapFactory[Map] {
^
three warnings found
one error found
The text was updated successfully, but these errors were encountered:
while compiling
scala.collection.immutable.Map
The text was updated successfully, but these errors were encountered: