From 42333cebbb7329a4488b7ebe1896ff2a723f4cb2 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 28 Feb 2015 11:52:34 +0100 Subject: Don't suppress ambiguous implicit notes. Ambiguous implicits notifcations for selection views were propagataed to adapt but then dropped. --- src/dotty/tools/dotc/typer/Typer.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/typer/Typer.scala') 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) } } -- cgit v1.2.3