diff options
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t0851.scala | 14 | ||||
-rw-r--r-- | test/files/pos/t0872.scala | 8 |
2 files changed, 0 insertions, 22 deletions
diff --git a/test/files/pos/t0851.scala b/test/files/pos/t0851.scala deleted file mode 100644 index fc7109dcd4..0000000000 --- a/test/files/pos/t0851.scala +++ /dev/null @@ -1,14 +0,0 @@ -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)) - () - } -} diff --git a/test/files/pos/t0872.scala b/test/files/pos/t0872.scala deleted file mode 100644 index 8f4c1c4436..0000000000 --- a/test/files/pos/t0872.scala +++ /dev/null @@ -1,8 +0,0 @@ -object Main { - def main(args : Array[String]) { - val fn = (a : Int, str : String) => "a: " + a + ", str: " + str - implicit def fx[T](f : (T,String) => String) = (x:T) => f(x,null) - println(fn(1)) - () - } -} |