summaryrefslogtreecommitdiff
path: root/test/files/pos/t1693.scala
blob: f3615f475632ecc5ed2cc8222794abe9806b8cdf (plain) (blame)
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)
}