aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t1107b/T.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pos/t1107b/T.scala')
-rw-r--r--tests/pos/t1107b/T.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/t1107b/T.scala b/tests/pos/t1107b/T.scala
new file mode 100644
index 000000000..0dff0b94f
--- /dev/null
+++ b/tests/pos/t1107b/T.scala
@@ -0,0 +1,7 @@
+sealed trait Top
+sealed trait Sub extends Top
+trait C {
+ private object P extends Sub
+ def bob() = P.getClass
+ def bob2() = O.d(P)
+}