summaryrefslogtreecommitdiff
path: root/test/files/neg/t6162-inheritance/usage.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t6162-inheritance/usage.scala')
-rw-r--r--test/files/neg/t6162-inheritance/usage.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t6162-inheritance/usage.scala b/test/files/neg/t6162-inheritance/usage.scala
new file mode 100644
index 0000000000..097e4f5903
--- /dev/null
+++ b/test/files/neg/t6162-inheritance/usage.scala
@@ -0,0 +1,10 @@
+package scala.t6126
+
+class SubFoo extends Foo
+
+object SubT extends T
+
+object O {
+ new S {
+ }
+}