diff options
Diffstat (limited to 'tests/pos/implicitonSelect.scala')
-rw-r--r-- | tests/pos/implicitonSelect.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/implicitonSelect.scala b/tests/pos/implicitonSelect.scala new file mode 100644 index 000000000..4f5f90ada --- /dev/null +++ b/tests/pos/implicitonSelect.scala @@ -0,0 +1,8 @@ +object test { + class A + class B + implicit def a2b(x: A): B = new B + class ARef { val a: A = new A } + val x = new ARef + val b: B = x.a +} |