From 81226b82d8c8b138eabb6956cab82410a17d812c Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Mon, 1 Oct 2012 07:12:25 -0700 Subject: 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! --- test/files/pos/t0872.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/pos/t0872.scala (limited to 'test/files/pos/t0872.scala') diff --git a/test/files/pos/t0872.scala b/test/files/pos/t0872.scala new file mode 100644 index 0000000000..8f4c1c4436 --- /dev/null +++ b/test/files/pos/t0872.scala @@ -0,0 +1,8 @@ +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)) + () + } +} -- cgit v1.2.3