diff options
author | Martin Odersky <odersky@gmail.com> | 2011-05-16 14:37:10 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-05-16 14:37:10 +0000 |
commit | 7127d8293775905acd0d04e21d9e045b5c029261 (patch) | |
tree | 312cc970ff0f41ae1c2f28c1f851b846c750237b /test | |
parent | 782c73313ecaa726d7341bebdfc316389a69caa5 (diff) | |
download | scala-7127d8293775905acd0d04e21d9e045b5c029261.tar.gz scala-7127d8293775905acd0d04e21d9e045b5c029261.tar.bz2 scala-7127d8293775905acd0d04e21d9e045b5c029261.zip |
Closes 4560. Review by dragos.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/t4560.check | 1 | ||||
-rw-r--r-- | test/files/run/t4560.scala | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/test/files/run/t4560.check b/test/files/run/t4560.check index 7ed6ff82de..fd3c81a4d7 100644 --- a/test/files/run/t4560.check +++ b/test/files/run/t4560.check @@ -1 +1,2 @@ 5 +5 diff --git a/test/files/run/t4560.scala b/test/files/run/t4560.scala index f1eb5d4169..f809e67898 100644 --- a/test/files/run/t4560.scala +++ b/test/files/run/t4560.scala @@ -16,8 +16,24 @@ trait B { } } +class A2 + +trait B2 { + self: A2 => + + def test { + import Pimper.pimp + + println(5.test) + } +} + object Test extends A with B { def main(args: Array[String]) { test + Test2.test } } + +object Test2 extends A2 with B2 + |