aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Typer.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-02-28 11:52:34 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-03-18 11:14:12 +0100
commit42333cebbb7329a4488b7ebe1896ff2a723f4cb2 (patch)
treeade2e31033c5e0dbae3ee97993f9726e0f240c01 /src/dotty/tools/dotc/typer/Typer.scala
parent62df23e4b75b1f57a4c110d7aac0e50a3a971074 (diff)
downloaddotty-42333cebbb7329a4488b7ebe1896ff2a723f4cb2.tar.gz
dotty-42333cebbb7329a4488b7ebe1896ff2a723f4cb2.tar.bz2
dotty-42333cebbb7329a4488b7ebe1896ff2a723f4cb2.zip
Don't suppress ambiguous implicit notes.
Ambiguous implicits notifcations for selection views were propagataed to adapt but then dropped.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Typer.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala
index 64dc41afd..5c4dfbc80 100644
--- a/src/dotty/tools/dotc/typer/Typer.scala
+++ b/src/dotty/tools/dotc/typer/Typer.scala
@@ -1355,7 +1355,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
case SearchSuccess(inferred, _, _) =>
adapt(inferred, pt)
case failure: SearchFailure =>
- if (pt.isInstanceOf[ProtoType]) tree
+ if (pt.isInstanceOf[ProtoType] && !failure.isInstanceOf[AmbiguousImplicits]) tree
else err.typeMismatch(tree, pt, failure)
}
}