diff options
author | Paul Phillips <paulp@improving.org> | 2012-10-01 07:12:25 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-10-01 07:15:29 -0700 |
commit | 81226b82d8c8b138eabb6956cab82410a17d812c (patch) | |
tree | 274f69cabfe3158818952d3ac15b99e4137fcb04 /test/files/pos/t0851.scala | |
parent | d2074796a8b822c4c82faecc8eb0eef4837508e3 (diff) | |
download | scala-81226b82d8c8b138eabb6956cab82410a17d812c.tar.gz scala-81226b82d8c8b138eabb6956cab82410a17d812c.tar.bz2 scala-81226b82d8c8b138eabb6956cab82410a17d812c.zip |
Recovered a bunch of deleted tests.
Are we in the habit of simply deleting tests when they
become inconvenient? A comment referenced test "0851" as the
example of why the code was needed; the test was deleted
years ago for no reason I can see except that it was not
passing at the time. Words fail me.
Public Service Announcement: tests which are failing are
the MOST USEFUL tests. DON'T DELETE THEM!
Diffstat (limited to 'test/files/pos/t0851.scala')
-rw-r--r-- | 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 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)) + () + } +} |