Skip to content

REPL crash with Eql #7644

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
lrytz opened this issue Nov 29, 2019 · 1 comment · Fixed by #8557
Closed

REPL crash with Eql #7644

lrytz opened this issue Nov 29, 2019 · 1 comment · Fixed by #8557

Comments

@lrytz
Copy link
Member

lrytz commented Nov 29, 2019

I have to admit the reporter was pretty stubborn at misreading the documentation in order to get there, and then trying once more, but anyways...

scala> class T extends Eql
1 |class T extends Eql
  |      ^
  |      Cannot extend sealed trait Eql in a different source file
1 |class T extends Eql
  |                ^^^
  |                Missing type parameter for Eql

scala> class T extends Eql
Exception in thread "main" java.lang.AssertionError: assertion failed: denotation module class internal invalid in run 2. ValidFor: Period(1..4, run = 3)
	at dotty.DottyPredef$.assertFail(DottyPredef.scala:17)
	at dotty.tools.dotc.core.Denotations$SingleDenotation.updateValidity(Denotations.scala:828)
@liufengyun
Copy link
Contributor

It works with the master:

scala> class T extends Eql
1 | class T extends Eql
  |       ^
  |       Cannot extend sealed trait Eql in a different source file
1 | class T extends Eql
  |                 ^^^
  |                 Missing type parameter for Eql
scala> class T extends Eql
1 | class T extends Eql
  |       ^
  |       Cannot extend sealed trait Eql in a different source file
stale symbol; module class rs$line$1$#2503 in module class <empty>, defined in Period(1..4, run = 2), is referred to in run Period(1..1, run = 3)
stale symbol; class T#3334 in module class rs$line$1$, defined in Period(1..4, run = 2), is referred to in run Period(1..1, run = 3)
1 | class T extends Eql
  |                 ^^^
  |                 Missing type parameter for Eql

liufengyun added a commit to dotty-staging/dotty that referenced this issue Mar 16, 2020
Otherwise, we will print the following in the REPL, which should not be the default.

stale symbol; module class rs$line$1$scala#2503 in module class <empty>, defined in Period(1..4, run = 2), is referred to in run Period(1..1, run = 3)
stale symbol; class T#3334 in module class rs$line$1$, defined in Period(1..4, run = 2), is referred to in run Period(1..1, run = 3)
liufengyun added a commit that referenced this issue Mar 16, 2020
Fix #7644: silence debug warnings in REPL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants