aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/t1693.scala
blob: 881bf89a00d7efa146f5904d88f67c603e280a38 (plain) (tree)
1
2
3
4
5
6
7
8
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)
}