diff options
author | Som Snytt <som.snytt@gmail.com> | 2017-01-16 23:18:25 -0800 |
---|---|---|
committer | Som Snytt <som.snytt@gmail.com> | 2017-01-16 23:18:25 -0800 |
commit | 48a4f06b6154dcacccab89d8002c51442376d786 (patch) | |
tree | dcb2ee4cc4d3c51612e802355c77d14a239ac0ca /test/files/neg/t8685.check | |
parent | 827d69d48e96d9add75ce19e06b374610784c936 (diff) | |
download | scala-48a4f06b6154dcacccab89d8002c51442376d786.tar.gz scala-48a4f06b6154dcacccab89d8002c51442376d786.tar.bz2 scala-48a4f06b6154dcacccab89d8002c51442376d786.zip |
SI-8685 Warn on deprecated case ctor
The narrow use case in the ticket was just to warn
on `C.apply` when the constructor has been
deprecated. Someone added code to warn after the
apply is rewritten, but it wasn't checking the
constructor (and the tree was checked before but
not after transform).
Diffstat (limited to 'test/files/neg/t8685.check')
-rw-r--r-- | test/files/neg/t8685.check | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/files/neg/t8685.check b/test/files/neg/t8685.check index 685fd2e951..a31e2e265a 100644 --- a/test/files/neg/t8685.check +++ b/test/files/neg/t8685.check @@ -4,6 +4,9 @@ case class D @deprecated("ctor D is depr", since="now") (i: Int) t8685.scala:35: warning: class C is deprecated (since now): class C is depr def f = C(42) ^ +t8685.scala:36: warning: constructor D in class D is deprecated (since now): ctor D is depr + def g = D(42) + ^ t8685.scala:37: warning: object E is deprecated (since now): module E is depr def h = E(42) ^ @@ -41,5 +44,5 @@ t8685.scala:53: warning: class K in object J is deprecated (since now): Inner K def l = new J.K(42) ^ error: No warnings can be incurred under -Xfatal-warnings. -14 warnings found +15 warnings found one error found |