diff options
author | Martin Odersky <odersky@gmail.com> | 2011-05-11 12:16:21 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-05-11 12:16:21 +0000 |
commit | 106a3ac9a7f74cc89541ffe3cf6b084db65bedd1 (patch) | |
tree | cad171993c0891ba6af13302def9785119fb6a88 /test/files | |
parent | 28149691dae4d73da676d54235e68feacd11c8f8 (diff) | |
download | scala-106a3ac9a7f74cc89541ffe3cf6b084db65bedd1.tar.gz scala-106a3ac9a7f74cc89541ffe3cf6b084db65bedd1.tar.bz2 scala-106a3ac9a7f74cc89541ffe3cf6b084db65bedd1.zip |
New test. No review.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/t4560.check | 1 | ||||
-rw-r--r-- | test/files/run/t4560.scala | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/files/run/t4560.check b/test/files/run/t4560.check new file mode 100644 index 0000000000..7ed6ff82de --- /dev/null +++ b/test/files/run/t4560.check @@ -0,0 +1 @@ +5 diff --git a/test/files/run/t4560.scala b/test/files/run/t4560.scala new file mode 100644 index 0000000000..f1eb5d4169 --- /dev/null +++ b/test/files/run/t4560.scala @@ -0,0 +1,23 @@ +object Pimper { + implicit def pimp(i: Int) = new { + def test: String = i.toString + } +} + +trait A + +trait B { + self: A => + + def test { + import Pimper.pimp + + println(5.test) + } +} + +object Test extends A with B { + def main(args: Array[String]) { + test + } +} |