blob: 4d862311fab5e499bc286b69acaa81b129a221f2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
object Test extends App {
@deprecated("","") def f = 42
@deprecated("","") def z = f
def g = { @deprecated("","") def _f = f ; _f } // warns in 2.11.0-M8
def x = { @deprecated("","") class X { def x = f } ; new X().x } // warns in 2.11.0-M8
Console println g
Console println f // warns
@deprecated("","") trait T
object T extends T { def t = f }
Console println T.t
def k = List(0).dropWhile(_ < 1) // inlining warns doubly
}
|