Skip to content

Cyclic reference with -Ytest-pickler #1932

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
OlivierBlanvillain opened this issue Feb 2, 2017 · 0 comments
Closed

Cyclic reference with -Ytest-pickler #1932

OlivierBlanvillain opened this issue Feb 2, 2017 · 0 comments

Comments

@OlivierBlanvillain
Copy link
Contributor

a.scala:

trait Filter {
  def info: Info
}

b.scala:

class Info(k: Keyboard)

sealed trait Thing
class Keyboard            extends Thing
class Laptop(k: Keyboard) extends Thing

run -Ytest-pickler -Ystop-after:pickler a.scala b.scala

cannot take signature of (k: Keyboard)Laptop
cannot take signature of ()Keyboard
cannot take signature of (k: Keyboard)Info

exception occurred while compiling a.scala, b.scala
Exception in thread "main" dotty.tools.dotc.core.Types$CyclicReference: cyclic reference involving class Keyboard
        [...]
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

1 participant