diff options
author | Martin Odersky <odersky@gmail.com> | 2008-05-21 13:56:51 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2008-05-21 13:56:51 +0000 |
commit | 7eea3c922d48e830ebf157baee652d65da75ed89 (patch) | |
tree | 377f5dbb931a54dc2758e2d3910c0d5a0f6489c4 /src/compiler | |
parent | 0425a6b3f7f5122024e2adbb8f595ce662acc574 (diff) | |
download | scala-7eea3c922d48e830ebf157baee652d65da75ed89.tar.gz scala-7eea3c922d48e830ebf157baee652d65da75ed89.tar.bz2 scala-7eea3c922d48e830ebf157baee652d65da75ed89.zip |
Fixed #677
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Infer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Infer.scala b/src/compiler/scala/tools/nsc/typechecker/Infer.scala index 182a94b97b..e31571e8bf 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Infer.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Infer.scala @@ -59,7 +59,7 @@ trait Infer { else actuals def actualArgs(pos: Position, actuals: List[Tree], nformals: Int): List[Tree] = - if (nformals == 1 && actuals.length != 1) List(atPos(pos)(gen.mkTuple(actuals))) else actuals + if (nformals == 1 && actuals.length != 1 && !phase.erasedTypes) List(atPos(pos)(gen.mkTuple(actuals))) else actuals /** A fresh type varable with given type parameter as origin. * |