summaryrefslogtreecommitdiff
path: root/test/files/pos/t261-ba.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/pos/t261-ba.scala')
-rw-r--r--test/files/pos/t261-ba.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/files/pos/t261-ba.scala b/test/files/pos/t261-ba.scala
new file mode 100644
index 0000000000..6c9c5b10b7
--- /dev/null
+++ b/test/files/pos/t261-ba.scala
@@ -0,0 +1,9 @@
+trait B {
+ private val foo: String = "B"
+ def f = println(foo)
+}
+trait A { val foo: String = "A" }
+object Test extends App with B with A {
+ println(foo) // prints "A", as expected
+ f // prints "B", as expected
+}