summaryrefslogtreecommitdiff
path: root/test/files/neg/t3006.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t3006.scala')
-rwxr-xr-xtest/files/neg/t3006.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/neg/t3006.scala b/test/files/neg/t3006.scala
new file mode 100755
index 0000000000..f476c1717d
--- /dev/null
+++ b/test/files/neg/t3006.scala
@@ -0,0 +1,10 @@
+object Test extends Application {
+ 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")
+
+}