Skip to content

AssertionError with Ycheck:all on a case class extending Any #5001

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
sir-wabbit opened this issue Aug 24, 2018 · 1 comment
Closed

AssertionError with Ycheck:all on a case class extending Any #5001

sir-wabbit opened this issue Aug 24, 2018 · 1 comment

Comments

@sir-wabbit
Copy link

sir-wabbit commented Aug 24, 2018

// Compile with -Ycheck:all
object i0 {
  case class i1() extends Any
}
Exception in thread "main" java.lang.AssertionError: assertion failed: symbols differ for this.eq
was                 : method eq
alternatives by type:  of types 
qualifier type      : i0.i1(i1.this)
tree type           : ((x$0: Object): Boolean)(i1.this.eq) of class class dotty.tools.dotc.core.Types$CachedTermRef
	at dotty.DottyPredef$.assertFail(DottyPredef.scala:38)
	at dotty.tools.dotc.transform.TreeChecker$Checker.typedSelect(TreeChecker.scala:346)
	at dotty.tools.dotc.typer.Typer.typedNamed$1(Typer.scala:1799)
	at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:1868)
	at dotty.tools.dotc.typer.ReTyper.typedUnadapted(ReTyper.scala:112)
	at dotty.tools.dotc.transform.TreeChecker$Checker.typedUnadapted(TreeChecker.scala:282)
	at dotty.tools.dotc.typer.Typer.typed(Typer.scala:1896)
	at dotty.tools.dotc.typer.Typer.typed(Typer.scala:1912)
	at dotty.tools.dotc.transform.TreeChecker$Checker.typed(TreeChecker.scala:270)

AE-3b3b6b8b578c2152ae06a6647f65684de4d4605d

@nicolasstucki
Copy link
Contributor

liufengyun added a commit to dotty-staging/dotty that referenced this issue Mar 1, 2019
liufengyun added a commit to dotty-staging/dotty that referenced this issue Mar 1, 2019
liufengyun added a commit to dotty-staging/dotty that referenced this issue Mar 1, 2019
liufengyun added a commit that referenced this issue Mar 7, 2019
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

3 participants