summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan@lightbend.com>2017-02-07 17:48:06 -0800
committerGitHub <noreply@github.com>2017-02-07 17:48:06 -0800
commit36f83e01c81981b3657c944d475ee78d24dce6e5 (patch)
treedfbccd80200a14f32580b2d2961837d24db94a21 /test
parent02a240aab66567d4d525f7ed4f95853b8f5299eb (diff)
parent48a4f06b6154dcacccab89d8002c51442376d786 (diff)
downloadscala-36f83e01c81981b3657c944d475ee78d24dce6e5.tar.gz
scala-36f83e01c81981b3657c944d475ee78d24dce6e5.tar.bz2
scala-36f83e01c81981b3657c944d475ee78d24dce6e5.zip
Merge pull request #5646 from som-snytt/issue/8685
SI-8685 Warn on deprecated case ctor
Diffstat (limited to 'test')
-rw-r--r--test/files/neg/t8685.check5
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