diff options
author | Martin Odersky <odersky@gmail.com> | 2008-05-21 13:23:45 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2008-05-21 13:23:45 +0000 |
commit | 0425a6b3f7f5122024e2adbb8f595ce662acc574 (patch) | |
tree | 92bfa412c5a82831b40f812f2aa2dbc11eb0401b /src/compiler | |
parent | eea19e9670b45a3bebfbb1ffa742172f6320b95f (diff) | |
download | scala-0425a6b3f7f5122024e2adbb8f595ce662acc574.tar.gz scala-0425a6b3f7f5122024e2adbb8f595ce662acc574.tar.bz2 scala-0425a6b3f7f5122024e2adbb8f595ce662acc574.zip |
fixed #665
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index bce45e4b42..eb12867ea9 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -810,7 +810,8 @@ trait Typers { self: Analyzer => } if (coercion != EmptyTree) { if (settings.debug.value) log("inferred view from "+tree.tpe+" to "+pt+" = "+coercion+":"+coercion.tpe) - return typed(Apply(coercion, List(tree)) setPos tree.pos, mode, pt) + return newTyper(context.makeImplicit(context.reportAmbiguousErrors)).typed( + Apply(coercion, List(tree)) setPos tree.pos, mode, pt) } } } |