diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-02-11 19:57:59 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-02-11 19:57:59 -0800 |
commit | d187a0ab9973a5e4042597a9dbf4f6d48ca482fe (patch) | |
tree | cd8f48320c26c33cc3c3764c3f299b2506164994 /test/files/pos/t261-ab.scala | |
parent | 98320a6d5947f26e7252b025cf56a0763b39cd07 (diff) | |
download | scala-d187a0ab9973a5e4042597a9dbf4f6d48ca482fe.tar.gz scala-d187a0ab9973a5e4042597a9dbf4f6d48ca482fe.tar.bz2 scala-d187a0ab9973a5e4042597a9dbf4f6d48ca482fe.zip |
SI-261 private vals in traits depend on composition order
Fix for SI-7475 in #3440 took care of this one.
I nixed the old (redundant) test cases and replaced by a single run/ test,
which didn't compile until.
Diffstat (limited to 'test/files/pos/t261-ab.scala')
-rw-r--r-- | test/files/pos/t261-ab.scala | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/test/files/pos/t261-ab.scala b/test/files/pos/t261-ab.scala deleted file mode 100644 index df641e811a..0000000000 --- a/test/files/pos/t261-ab.scala +++ /dev/null @@ -1,9 +0,0 @@ -trait A { val foo: String = "A" } -trait B { - private val foo: String = "B" - def f = println(foo) -} -object Test extends App with B with A { - println(foo) // prints "A", as expected - f // prints "B", as expected -} |