From 41b8853ca9a8327c65cb96a8ffccb5491d53edda Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 17 Sep 2015 13:02:49 +0200 Subject: Harmaonize numeric arguments only during typer. Afterwards, implicit conversions are no longer available. Fixes #791. --- src/dotty/tools/dotc/typer/Applications.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/dotty/tools/dotc/typer/Applications.scala b/src/dotty/tools/dotc/typer/Applications.scala index c45db4ccc..40029c42b 100644 --- a/src/dotty/tools/dotc/typer/Applications.scala +++ b/src/dotty/tools/dotc/typer/Applications.scala @@ -1117,7 +1117,7 @@ trait Applications extends Compatibility { self: Typer => case cdef: CaseDef => tpd.cpy.CaseDef(cdef)(body = adapt(cdef.body, pt)) case _ => adaptInterpolated(tree, pt, tree) } - harmonizeWith(trees)(_.tpe, adapt) + if (ctx.isAfterTyper) trees else harmonizeWith(trees)(_.tpe, adapt) } /** If all `types` are numeric value types, and they are not all the same type, -- cgit v1.2.3