Skip to content

ExplicitOuter crash with local class defined in val in trait if the local class extends a path-dependent class #1131

Closed
@smarter

Description

@smarter
class Outer {
  class Inner
}

trait MustBeATrait {
  val o = new Outer
  val inner = new o.Inner {}
}

fails with assertion failed: asTerm called on not-a-Term val <none> somewhere in ExplicitOuter.
Stack trace: https://gist.github.com/smarter/992bb93f2d0f2705a6a6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions