diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-02-08 23:53:18 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-02-09 00:01:52 +0100 |
commit | 451cab967a332773c2027ada7553d5d59c0dc4b1 (patch) | |
tree | 1b7786d0ab350aec3113c496e0366f5f174e7304 /test/files | |
parent | 6537d79e47def868e028815db6f70e2dc7d49bac (diff) | |
download | scala-451cab967a332773c2027ada7553d5d59c0dc4b1.tar.gz scala-451cab967a332773c2027ada7553d5d59c0dc4b1.tar.bz2 scala-451cab967a332773c2027ada7553d5d59c0dc4b1.zip |
SI-6225 Fix import of inherited package object implicits
The prefix in the ImplicitInfo must be com.acme.`package`.type,
rather than com.acme.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t6225.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/files/pos/t6225.scala b/test/files/pos/t6225.scala new file mode 100644 index 0000000000..d3d30d9e16 --- /dev/null +++ b/test/files/pos/t6225.scala @@ -0,0 +1,20 @@ + +package library.x { + class X { + class Foo + implicit val foo: Foo = new Foo + } +} +package library { + package object y extends library.x.X +} + +object ko { + import library.y.{Foo, foo} + implicitly[Foo] +} + +object ko2 { + import library.y._ + implicitly[Foo] +} |