diff options
Diffstat (limited to 'tests/untried/pos/t4975.scala')
-rw-r--r-- | tests/untried/pos/t4975.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/untried/pos/t4975.scala b/tests/untried/pos/t4975.scala new file mode 100644 index 000000000..97ed9369e --- /dev/null +++ b/tests/untried/pos/t4975.scala @@ -0,0 +1,12 @@ +object ImplicitScope { + class A[T] + + def foo: Unit = { + trait B + object B { + implicit def ab = new A[B] + } + + implicitly[A[B]] // Error + } +} |