aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Applications.scala
diff options
context:
space:
mode:
authorliu fengyun <liufengyunchina@gmail.com>2016-06-20 14:29:39 +0200
committerliu fengyun <liufengyunchina@gmail.com>2016-06-20 14:29:39 +0200
commitcece884812143c6c8090ce08c6321bd4a1d52ea6 (patch)
tree2904ab37df31e7731b5ab638e9f6f5035e874cf0 /src/dotty/tools/dotc/typer/Applications.scala
parentc7d1826cf0456e5efad5cb66ae06e7273c8a8e2a (diff)
downloaddotty-cece884812143c6c8090ce08c6321bd4a1d52ea6.tar.gz
dotty-cece884812143c6c8090ce08c6321bd4a1d52ea6.tar.bz2
dotty-cece884812143c6c8090ce08c6321bd4a1d52ea6.zip
better handling of overloaded extractors
Diffstat (limited to 'src/dotty/tools/dotc/typer/Applications.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Applications.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/typer/Applications.scala b/src/dotty/tools/dotc/typer/Applications.scala
index f743c5784..a9184c7e5 100644
--- a/src/dotty/tools/dotc/typer/Applications.scala
+++ b/src/dotty/tools/dotc/typer/Applications.scala
@@ -709,11 +709,11 @@ trait Applications extends Compatibility { self: Typer =>
// try first for non-overloaded, then for overloaded ocurrences
def tryWithName(name: TermName)(fallBack: Tree => Tree)(implicit ctx: Context): Tree =
tryEither {
- implicit ctx => typedExpr(untpd.Select(qual, name), genericProto)
+ implicit ctx => typedExpr(untpd.Select(qual, name), specificProto)
} {
(sel, _) =>
tryEither {
- implicit ctx => typedExpr(untpd.Select(qual, name), specificProto)
+ implicit ctx => typedExpr(untpd.Select(qual, name), genericProto)
} {
(_, _) => fallBack(sel)
}