Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Conversation

@allanrenucci
Copy link
Contributor

This version of Dotty fixes several unsoundness issues and remove the unsound protected[this] escape hatch for variance checking. See scala/scala3#4013

@julienrf You might want to play with this branch and make it compile with Dotty

This version of Dotty fixes several unsoundness issues and remove the
unsound protected[this] escape hatch for variance checking. See
scala/scala3#4013
object ImmutableArray extends StrictOptimizedClassTagSeqFactory[ImmutableArray] { self =>
val untagged: SeqFactory[ImmutableArray] = new ClassTagSeqFactory.AnySeqDelegate(self)
object ImmutableArray extends StrictOptimizedClassTagSeqFactory[ImmutableArray] {
val untagged: SeqFactory[ImmutableArray] = new ClassTagSeqFactory.AnySeqDelegate(this)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for these changes? Just removing some unnecessary code, or is there a change in Dotty that necessitates this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We recently disallowed named self in scala/scala3#4118. We might reconsider it though

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the fix refers to the wrong this! Btw we will revert #4118.

@odersky
Copy link
Contributor

odersky commented Mar 22, 2018

Superseded by #519.

@odersky odersky closed this Mar 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants