Skip to content

"no-symbol does not have owner" for sealed case classes in method #710

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
scabug opened this issue Apr 1, 2008 · 7 comments
Closed

"no-symbol does not have owner" for sealed case classes in method #710

scabug opened this issue Apr 1, 2008 · 7 comments
Assignees
Milestone

Comments

@scabug
Copy link

scabug commented Apr 1, 2008

The nightly compiler (r14472) throws "scala.tools.nsc.!FatalError: no-symbol does not have owner" when compiling the following code:

object Bug {
  def method: Unit = {
    sealed case class Parent
    case object Child extends Parent
    val x: Parent = Child
    x match {
      case Child => ()
    }
  }
}

Compile log with full trace is attached.

@scabug
Copy link
Author

scabug commented Apr 1, 2008

Imported From: https://issues.scala-lang.org/browse/SI-710?orig=1
Reporter: @richdougherty
Attachments:

  • compile.log (created on Apr 1, 2008 7:12:27 PM UTC, 38035 bytes)

@scabug
Copy link
Author

scabug commented Apr 1, 2008

@richdougherty said:
Compiler log

@scabug
Copy link
Author

scabug commented Apr 4, 2008

@lrytz said:
Created a Test: pending/pos/t0710.scala

@scabug
Copy link
Author

scabug commented Apr 8, 2008

@odersky said:
Since it's in the pattern matcher, Burak should take a look first. I suspect it has to do with the code that checks the outer pointer (which should not be run in this case).

@scabug
Copy link
Author

scabug commented Apr 10, 2008

@burakemir said:
fixed in r14624 - thanks for catching this early.

@scabug
Copy link
Author

scabug commented Apr 10, 2008

@burakemir said:
2.7.1. branch has the fix in r14626

@scabug
Copy link
Author

scabug commented Jan 14, 2009

@odersky said:
Milestone 2.7.1 deleted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants