From 33b0e7b1ab0e71f525c75705dcd91b4b7d9d0994 Mon Sep 17 00:00:00 2001 From: Samuel Gruetter Date: Wed, 19 Mar 2014 17:07:46 +0100 Subject: apply srewrite (explicit types for implicits + no procedure syntax for constructors) to tests/untried/pos --- tests/untried/pos/t0872.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/untried/pos/t0872.scala') diff --git a/tests/untried/pos/t0872.scala b/tests/untried/pos/t0872.scala index 79df8e804..ccaee8052 100644 --- a/tests/untried/pos/t0872.scala +++ b/tests/untried/pos/t0872.scala @@ -1,7 +1,7 @@ object Main { def main(args : Array[String]): Unit = { val fn = (a : Int, str : String) => "a: " + a + ", str: " + str - implicit def fx[T](f : (T,String) => String) = (x:T) => f(x,null) + implicit def fx[T](f : (T,String) => String): T => String = (x:T) => f(x,null) println(fn(1)) () } -- cgit v1.2.3