summaryrefslogtreecommitdiff
path: root/test/files/pos/t8954/t1.scala
blob: 3986d9f3b5465b10916d4883ca01c9353dd37f38 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package scala.foo

// 1. a class about to be made final
@deprecatedInheritance class A {
  def foo(): Unit = ???
}

// 1.1:
// - no inheritance warning because same file
// - no "override non-deprecated member" because @deprecatedInheritance
class B2 extends A {
  @deprecated("","") override def foo(): Unit = ???
}