From 13362e3207829711f3975ebc3b2649af57705487 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 26 Jul 2017 13:30:11 +0200 Subject: [PATCH] Fix the order of implicit context bound parameters Make implicit context bound parameters precede, rather than follow, other implicit parameters. This corresponds to what scalac does, and is needed so that we can interop. --- compiler/src/dotty/tools/dotc/ast/Desugar.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/ast/Desugar.scala b/compiler/src/dotty/tools/dotc/ast/Desugar.scala index d311ac834450..32bdb20c787b 100644 --- a/compiler/src/dotty/tools/dotc/ast/Desugar.scala +++ b/compiler/src/dotty/tools/dotc/ast/Desugar.scala @@ -222,7 +222,7 @@ object desugar { case evidenceParams => val vparamss1 = meth.vparamss.reverse match { case (vparams @ (vparam :: _)) :: rvparamss if vparam.mods is Implicit => - ((vparams ++ evidenceParams) :: rvparamss).reverse + ((evidenceParams ++ vparams) :: rvparamss).reverse case _ => meth.vparamss :+ evidenceParams }