Skip to content

.to(mutable.PriorityQueue) not compiling on 2.12 #247

Closed
@fdietze

Description

@fdietze

I'm porting Scala.rx to 2.13 (lihaoyi/scala.rx#138). It now compiles for 2.13, but not for 2.12 anymore (https://travis-ci.org/lihaoyi/scala.rx/builds/579881994?utm_source=github_status&utm_medium=notification):

[error]      type mismatch;
[error]       found   : scala.collection.mutable.PriorityQueue.type
[error]       required: scala.collection.generic.CanBuildFrom[Nothing,rx.Rx.Dynamic[_],scala.collection.mutable.PriorityQueue[rx.Rx.Dynamic[_]]]
[error]      L44:       args.iterator.flatMap(_.v.downStream).to(mutable.PriorityQueue),

Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomerslibraryRelated to compat library code (not rewrite rules)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions