summaryrefslogtreecommitdiff
path: root/test/files/pos/t0851.scala
diff options
context:
space:
mode:
authorAntonio Cunei <antonio.cunei@epfl.ch>2009-11-06 19:06:35 +0000
committerAntonio Cunei <antonio.cunei@epfl.ch>2009-11-06 19:06:35 +0000
commit5d25e9334d6dfd492cb5312a43b3d3f36042401a (patch)
treef3740e52f6439d41a0969880aa2a7abd92115141 /test/files/pos/t0851.scala
parentd42f62bbd76df85ed57162118a8c720f50bbd5c5 (diff)
downloadscala-5d25e9334d6dfd492cb5312a43b3d3f36042401a.tar.gz
scala-5d25e9334d6dfd492cb5312a43b3d3f36042401a.tar.bz2
scala-5d25e9334d6dfd492cb5312a43b3d3f36042401a.zip
Moved disabled tests back into their original p...
Moved disabled tests back into their original place. Expect 7 tests to fail.
Diffstat (limited to 'test/files/pos/t0851.scala')
-rw-r--r--test/files/pos/t0851.scala14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/pos/t0851.scala b/test/files/pos/t0851.scala
new file mode 100644
index 0000000000..fc7109dcd4
--- /dev/null
+++ b/test/files/pos/t0851.scala
@@ -0,0 +1,14 @@
+package test
+
+object test1 {
+ case class Foo[T,T2](f : (T,T2) => String) extends (((T,T2)) => String){
+ def apply(t : T) = (s:T2) => f(t,s)
+ def apply(p : (T,T2)) = f(p._1,p._2)
+ }
+ implicit def g[T](f : (T,String) => String) = Foo(f)
+ def main(args : Array[String]) : Unit = {
+ val f = (x:Int,s:String) => s + x
+ println(f(1))
+ ()
+ }
+}