diff options
Diffstat (limited to 'tests/pos/t1693.scala')
-rw-r--r-- | tests/pos/t1693.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/t1693.scala b/tests/pos/t1693.scala new file mode 100644 index 000000000..881bf89a0 --- /dev/null +++ b/tests/pos/t1693.scala @@ -0,0 +1,9 @@ +object Test { + class Foo + class SomeOps(x : Foo) { def foo(x: String) = 1 } + class OtherOps(x : Foo) { def foo(x: Int) = 1 } + implicit def mkSomeOps(x: Foo) : SomeOps = new SomeOps(x) + implicit def mkOtherOps(x: Foo) : OtherOps = new OtherOps(x) + + (new Foo).foo(1) +} |