diff options
author | Martin Odersky <odersky@gmail.com> | 2015-09-17 13:02:49 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-09-17 13:02:49 +0200 |
commit | 41b8853ca9a8327c65cb96a8ffccb5491d53edda (patch) | |
tree | 32551f8cf2d8df347491bc542a6ca3fffc6a16d4 /src/dotty/tools/dotc/typer/Applications.scala | |
parent | 4966589b7d09f1650bf2df461ba3c6461552a0e3 (diff) | |
download | dotty-41b8853ca9a8327c65cb96a8ffccb5491d53edda.tar.gz dotty-41b8853ca9a8327c65cb96a8ffccb5491d53edda.tar.bz2 dotty-41b8853ca9a8327c65cb96a8ffccb5491d53edda.zip |
Harmaonize numeric arguments only during typer.
Afterwards, implicit conversions are no longer available.
Fixes #791.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Applications.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Applications.scala | 2 |
1 files changed, 1 insertions, 1 deletions
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, |