Skip to content

Compiling collections: subtyping failures for Factories #779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DarkDimius opened this issue Sep 1, 2015 · 0 comments
Closed

Compiling collections: subtyping failures for Factories #779

DarkDimius opened this issue Sep 1, 2015 · 0 comments

Comments

@DarkDimius
Copy link
Contributor

while compiling scala.collection.immutable.Map

$ dotc Map.scala
warning: encountered F-bounded higher-kinded type parameters for type scala$collection$generic$GenMapFactory$$CC; assuming they are invariant
warning: encountered F-bounded higher-kinded type parameters for type scala$collection$generic$MapFactory$$CC; assuming they are invariant
warning: encountered F-bounded higher-kinded type parameters for type scala$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]
      ]
object Map extends ImmutableMapFactory[Map] {
                                       ^
three warnings found
one error found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants