diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2014-02-12 13:43:43 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2014-02-12 13:43:43 +0100 |
commit | 00067482917cbe7ac337550e1f565fea966c2d78 (patch) | |
tree | cd8f48320c26c33cc3c3764c3f299b2506164994 /test/files/run/t261.scala | |
parent | 98320a6d5947f26e7252b025cf56a0763b39cd07 (diff) | |
parent | d187a0ab9973a5e4042597a9dbf4f6d48ca482fe (diff) | |
download | scala-00067482917cbe7ac337550e1f565fea966c2d78.tar.gz scala-00067482917cbe7ac337550e1f565fea966c2d78.tar.bz2 scala-00067482917cbe7ac337550e1f565fea966c2d78.zip |
Merge pull request #3512 from adriaanm/t261
private vals in traits depend on composition order
Diffstat (limited to 'test/files/run/t261.scala')
-rw-r--r-- | test/files/run/t261.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/files/run/t261.scala b/test/files/run/t261.scala new file mode 100644 index 0000000000..d8ddb28c00 --- /dev/null +++ b/test/files/run/t261.scala @@ -0,0 +1,11 @@ +trait A { val foo: String = "A" } +trait B { + private val foo: String = "B" + def f = println(foo) +} +object Test extends A with B { + def main(args: Array[String]) = { + println(foo) + f + } +}
\ No newline at end of file |