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/depmet_implicit_chaining_zw.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/depmet_implicit_chaining_zw.scala')
-rw-r--r-- | tests/untried/pos/depmet_implicit_chaining_zw.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/untried/pos/depmet_implicit_chaining_zw.scala b/tests/untried/pos/depmet_implicit_chaining_zw.scala index ce5ea476d..a9da1e976 100644 --- a/tests/untried/pos/depmet_implicit_chaining_zw.scala +++ b/tests/untried/pos/depmet_implicit_chaining_zw.scala @@ -7,11 +7,11 @@ trait ZipWith[N, S] { } object ZipWith { - implicit def ZeroZipWith[S] = new ZipWith[Zero, S] { + implicit def ZeroZipWith[S]: ZipWith[Zero,S]{type T = Stream[S]} = new ZipWith[Zero, S] { type T = Stream[S] } - implicit def SuccZipWith[N, S, R](implicit zWith : ZipWith[N, R]) = new ZipWith[Succ[N], S => R] { + implicit def SuccZipWith[N, S, R](implicit zWith : ZipWith[N, R]): ZipWith[Succ[N],S => R]{type T = Stream[S] => zWith.T} = new ZipWith[Succ[N], S => R] { type T = Stream[S] => zWith.T // dependent types replace the associated types functionality } |