8000 private types displayed in error messages · Issue #8812 · scala/bug · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
private types displayed in error messages #8812
Open
@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

      0