diff options
author | Samuel Gruetter <samuel.gruetter@epfl.ch> | 2014-03-19 17:07:46 +0100 |
---|---|---|
committer | Samuel Gruetter <samuel.gruetter@epfl.ch> | 2014-03-19 17:07:46 +0100 |
commit | 33b0e7b1ab0e71f525c75705dcd91b4b7d9d0994 (patch) | |
tree | d666ced3c08e0745bebb706148abbac56df78c8c /tests/untried/pos/t2782.scala | |
parent | 1dfe6567fee9626106211088e41c4683342ec0f8 (diff) | |
download | dotty-33b0e7b1ab0e71f525c75705dcd91b4b7d9d0994.tar.gz dotty-33b0e7b1ab0e71f525c75705dcd91b4b7d9d0994.tar.bz2 dotty-33b0e7b1ab0e71f525c75705dcd91b4b7d9d0994.zip |
apply srewrite (explicit types for implicits + no procedure syntax
for constructors) to tests/untried/pos
Diffstat (limited to 'tests/untried/pos/t2782.scala')
-rw-r--r-- | tests/untried/pos/t2782.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/untried/pos/t2782.scala b/tests/untried/pos/t2782.scala index ab12aaf1f..3b387af80 100644 --- a/tests/untried/pos/t2782.scala +++ b/tests/untried/pos/t2782.scala @@ -4,9 +4,9 @@ object Test { trait Foo[T] // Haven't managed to repro without using a CanBuild or CanBuildFrom implicit parameter - implicit def MapFoo[A, B, M[A, B] <: sc.Map[A,B]](implicit aFoo: Foo[A], bFoo: Foo[B], cb: sc.generic.CanBuild[(A, B), M[A, B]]) = new Foo[M[A,B]] {} + implicit def MapFoo[A, B, M[A, B] <: sc.Map[A,B]](implicit aFoo: Foo[A], bFoo: Foo[B], cb: sc.generic.CanBuild[(A, B), M[A, B]]): Test.Foo[M[A,B]] = new Foo[M[A,B]] {} implicit object Tuple2IntIntFoo extends Foo[(Int, Int)] // no difference if this line is uncommented - implicit def Tuple2Foo[A, B] = new Foo[(A, B)] {} // nor this one + implicit def Tuple2Foo[A, B]: Test.Foo[(A, B)] = new Foo[(A, B)] {} // nor this one implicitly[Foo[(Int, Int)]] } |