Skip to content

private types displayed in error messages #8812

@scabug

Description

@scabug

Oh good, another bug involving access. Just throw it on the dead letter pile.

class Foo(x: Int) {
  // a private type should never be displayed
  private type This = Foo
  def + (x: This): This = this
}
class Bar {
  new Foo(5) + Nil    // required: Foo
  val v = new Foo(5)
  v + Nil             // required: Bar.this.v.This (which expands to) Foo
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions