Skip to content

class Stream.Cons and object Stream.cons are clashing with each other #11997

Closed
@sjrd

Description

@sjrd

In object Stream, there is a class Cons and an object cons.

This happens not to cause any issue on the JVM, even on Windows. That's because Stream$cons$ being a nested object, scalac does not generate static forwarders for it in Stream$cons. However Scala.js generates more static forwarders, to be able to correctly define static methods in nested static classes of JDK APIs.

This basically prevents from building Scala.js 1.x with 2.13.x on Windows.

I don't know what to do about this, given the binary compat guarantees. 😰

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions