From 451cab967a332773c2027ada7553d5d59c0dc4b1 Mon Sep 17 00:00:00 2001 From: Jason Zaugg Date: Fri, 8 Feb 2013 23:53:18 +0100 Subject: SI-6225 Fix import of inherited package object implicits The prefix in the ImplicitInfo must be com.acme.`package`.type, rather than com.acme. --- test/files/pos/t6225.scala | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/files/pos/t6225.scala (limited to 'test/files/pos/t6225.scala') 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] +} -- cgit v1.2.3