diff options
author | Martin Odersky <odersky@gmail.com> | 2008-07-10 14:59:55 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2008-07-10 14:59:55 +0000 |
commit | d3744118959edcbb8fb061d106078864f83fb7b2 (patch) | |
tree | 9ff868237e2b1be920b26d1591350d09688bb6fa /test/files/pos/t0851.scala | |
parent | f12e0645fff0039e5cb681cb766a1b2be884e61d (diff) | |
download | scala-d3744118959edcbb8fb061d106078864f83fb7b2.tar.gz scala-d3744118959edcbb8fb061d106078864f83fb7b2.tar.bz2 scala-d3744118959edcbb8fb061d106078864f83fb7b2.zip |
fixed t0851 and t1101.
Diffstat (limited to 'test/files/pos/t0851.scala')
-rwxr-xr-x | test/files/pos/t0851.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/files/pos/t0851.scala b/test/files/pos/t0851.scala new file mode 100755 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)) + () + } +} |