diff options
author | Martin Odersky <odersky@gmail.com> | 2009-12-23 15:02:38 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2009-12-23 15:02:38 +0000 |
commit | b41e97987f1d6b7f0ccd6dc2a3fb09543f1daab0 (patch) | |
tree | e9e79df1990460b2c6f612276e1281ff9d7364ae | |
parent | 154326ab0c464bd10648b03998ea7a1700a572bb (diff) | |
download | scala-b41e97987f1d6b7f0ccd6dc2a3fb09543f1daab0.tar.gz scala-b41e97987f1d6b7f0ccd6dc2a3fb09543f1daab0.tar.bz2 scala-b41e97987f1d6b7f0ccd6dc2a3fb09543f1daab0.zip |
new testcase no review necessary.
-rw-r--r-- | test/files/pos/implicits.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/implicits.scala b/test/files/pos/implicits.scala index 14241a2655..3939a28398 100644 --- a/test/files/pos/implicits.scala +++ b/test/files/pos/implicits.scala @@ -66,3 +66,19 @@ object TestNumericWidening { val y = 1 val x: java.lang.Long = y } + +// #2709 +package foo2709 { + class A + class B + + package object bar { + implicit def a2b(a: A): B = new B + } + + package bar { + object test { + new A: B + } + } +} |