summaryrefslogtreecommitdiff
path: root/test/files/neg/t6162-inheritance.check
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-03-29 19:05:13 +0100
committerJason Zaugg <jzaugg@gmail.com>2013-03-30 10:00:46 +0100
commit54d11fe5451a9f26207ce283f2df1114c89384dd (patch)
tree72a541fb877533066dc736573d3d765ad08551e4 /test/files/neg/t6162-inheritance.check
parent7894c1b24fddc91fbec53a9906e3c8b8e8a4e61a (diff)
downloadscala-54d11fe5451a9f26207ce283f2df1114c89384dd.tar.gz
scala-54d11fe5451a9f26207ce283f2df1114c89384dd.tar.bz2
scala-54d11fe5451a9f26207ce283f2df1114c89384dd.zip
SI-7312 @deprecatedInheritance now ignores same-file subclasses
This allows us to deprecate external inheritances as a prelude to sealing a class, without enduring the warnings ourselved in interlude.
Diffstat (limited to 'test/files/neg/t6162-inheritance.check')
-rw-r--r--test/files/neg/t6162-inheritance.check10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/files/neg/t6162-inheritance.check b/test/files/neg/t6162-inheritance.check
index e98fa79eb7..13c78030d9 100644
--- a/test/files/neg/t6162-inheritance.check
+++ b/test/files/neg/t6162-inheritance.check
@@ -1,16 +1,16 @@
-t6162-inheritance.scala:6: warning: inheritance from class Foo in package t6126 is deprecated: `Foo` will be made final in a future version.
+usage.scala:3: warning: inheritance from class Foo in package t6126 is deprecated: `Foo` will be made final in a future version.
class SubFoo extends Foo
^
-t6162-inheritance.scala:11: warning: inheritance from trait T in package t6126 is deprecated
+usage.scala:5: warning: inheritance from trait T in package t6126 is deprecated
object SubT extends T
^
-t6162-inheritance.scala:17: warning: inheritance from trait S in package t6126 is deprecated
+usage.scala:8: warning: inheritance from trait S in package t6126 is deprecated
new S {
^
-t6162-inheritance.scala:6: warning: inheritance from class Foo in package t6126 is deprecated: `Foo` will be made final in a future version.
+usage.scala:3: warning: inheritance from class Foo in package t6126 is deprecated: `Foo` will be made final in a future version.
class SubFoo extends Foo
^
-t6162-inheritance.scala:11: warning: inheritance from trait T in package t6126 is deprecated
+usage.scala:5: warning: inheritance from trait T in package t6126 is deprecated
object SubT extends T
^
error: No warnings can be incurred under -Xfatal-warnings.