Skip to content

Extend @uncheckedStable to allow stable defs #8908

@scabug

Description

@scabug
object pig {
  @scala.annotation.unchecked.uncheckedStable def dog = ()
  () match {
    case `dog` =>
  }
}

scala> error: stable identifier required, but pig.this.dog found.
           case `dog` =>

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions