aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t2133.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t2133.scala')
-rw-r--r--tests/untried/pos/t2133.scala18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/untried/pos/t2133.scala b/tests/untried/pos/t2133.scala
new file mode 100644
index 000000000..c74d0a4bb
--- /dev/null
+++ b/tests/untried/pos/t2133.scala
@@ -0,0 +1,18 @@
+trait Foo {
+ object bar {
+ private[this] def fn() = 5
+ }
+}
+
+trait Foo2 {
+ object bip {
+ def fn() = 10
+ }
+}
+
+class Bob extends AnyRef with Foo with Foo2 {
+ import bip._
+ import bar._
+
+ def go() = fn()
+}