diff options
Diffstat (limited to 'test/files/pos')
-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 + } + } +} |