diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-05-22 15:52:08 -0700 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2012-05-22 15:52:08 -0700 |
commit | 9dae0deb1cd5d1f0cdc81d45a2b681a65a709b0d (patch) | |
tree | 706a5f54499cd158cae4f66a2a4106135e6d1fda /test/files/pos | |
parent | 7248c079247d2949f3a12c1da60ac51747bda9ff (diff) | |
parent | 03e6d929ee639de292daa778dde514e1b7014eac (diff) | |
download | scala-9dae0deb1cd5d1f0cdc81d45a2b681a65a709b0d.tar.gz scala-9dae0deb1cd5d1f0cdc81d45a2b681a65a709b0d.tar.bz2 scala-9dae0deb1cd5d1f0cdc81d45a2b681a65a709b0d.zip |
Merge pull request #592 from retronym/ticket/4975
Consider method-scoped companions in the implicit scope.
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t4975.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/pos/t4975.scala b/test/files/pos/t4975.scala new file mode 100644 index 0000000000..12d889c0d5 --- /dev/null +++ b/test/files/pos/t4975.scala @@ -0,0 +1,12 @@ +object ImplicitScope { + class A[T] + + def foo { + trait B + object B { + implicit def ab = new A[B] + } + + implicitly[A[B]] // Error + } +} |