Skip to content

False shadowing deprecation warning from #8353 #11895

Closed
scala/scala
#8751
@soronpo

Description

@soronpo

The following code emits a class shadowing deprecation warning where none exists (AFAIK).
This code compiles in dotty 0.22.0-RC1 without any warnings.

trait Bar {
  trait Foo
  val Foo : Foo
}
object SomeBar extends Bar {
  object Foo extends Foo
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions