Skip to content

Compiler crash: does not have an outer accessor #7428

@flomebul

Description

@flomebul

Hello,
This simple program provokes the crash:

class ABug
  enum Tag
    case first
  import Tag._
  val xx = first

The reported error is

Error while emitting ABug.scala
exception occurred while compiling ABug.scala
java.lang.AssertionError: assertion failed: failure to construct path from package <root> to `this` of class ABug;
package <root> does not have an outer accessor while compiling ABug.scala
Exception in thread "main" java.lang.AssertionError: assertion failed: failure to construct path from package <root> to `this` of class ABug;
package <root> does not have an outer accessor

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions