diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-09-03 08:16:36 +0200 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-09-03 08:16:36 +0200 |
commit | 2f78ddd3d011457b9afb0078f20e3b612f1e087e (patch) | |
tree | b55c2d783f2b80fb74218759f8c453a53b2dc09e /test/files/pos/t8410.scala | |
parent | 816c399beb22da612721ec7a4fa781dbeeb03a46 (diff) | |
parent | 6076d61aef732b89af9d2c803425f90fb0fc4686 (diff) | |
download | scala-2f78ddd3d011457b9afb0078f20e3b612f1e087e.tar.gz scala-2f78ddd3d011457b9afb0078f20e3b612f1e087e.tar.bz2 scala-2f78ddd3d011457b9afb0078f20e3b612f1e087e.zip |
Merge pull request #3955 from som-snytt/issue/8410
SI-8410 Don't warn fatally on disabled flag
Diffstat (limited to 'test/files/pos/t8410.scala')
-rw-r--r-- | test/files/pos/t8410.scala | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/pos/t8410.scala b/test/files/pos/t8410.scala new file mode 100644 index 0000000000..4d862311fa --- /dev/null +++ b/test/files/pos/t8410.scala @@ -0,0 +1,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 +} |