summaryrefslogtreecommitdiff
path: root/test/files/neg/t3006.scala
blob: a84b69c842f1ef03249d96b9e15f38309ac5cd41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
object Test extends App {
  case class A(x: Int);

  class Foo(a: A) { println("Foo created!"); def +(x: Int) = new A(this.a.x + x); }

  implicit def aToFoo(x: A) = new Foo(x);

  println(A(3) + "H")

}