summaryrefslogtreecommitdiff
path: root/test/files/neg/t6162-inheritance.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t6162-inheritance.scala')
-rw-r--r--test/files/neg/t6162-inheritance.scala19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/neg/t6162-inheritance.scala b/test/files/neg/t6162-inheritance.scala
new file mode 100644
index 0000000000..7b47b9285a
--- /dev/null
+++ b/test/files/neg/t6162-inheritance.scala
@@ -0,0 +1,19 @@
+package scala.t6126
+
+@deprecatedInheritance("`Foo` will be made final in a future version.", "2.10.0")
+class Foo
+
+class SubFoo extends Foo
+
+@deprecatedInheritance()
+trait T
+
+object SubT extends T
+
+@deprecatedInheritance()
+trait S
+
+object O {
+ new S {
+ }
+}