diff options
author | Martin Odersky <odersky@gmail.com> | 2015-11-01 16:42:00 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-11-01 16:42:00 +0100 |
commit | f48ea79df03fde590f0ba22dcc52f2c82227b9e9 (patch) | |
tree | 6a3e0f1aa2b3a883532333ca92d706232be0e5c1 /src/dotty/tools/dotc/typer/Implicits.scala | |
parent | 5ed617b9ac205b831ec69b782472b1afc5752378 (diff) | |
download | dotty-f48ea79df03fde590f0ba22dcc52f2c82227b9e9.tar.gz dotty-f48ea79df03fde590f0ba22dcc52f2c82227b9e9.tar.bz2 dotty-f48ea79df03fde590f0ba22dcc52f2c82227b9e9.zip |
Disable failing test
Dotty delivers an ambiguity error. The comment in the test argues why
this is OK.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Implicits.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Implicits.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dotty/tools/dotc/typer/Implicits.scala b/src/dotty/tools/dotc/typer/Implicits.scala index 7dbf6d17c..54ecb2405 100644 --- a/src/dotty/tools/dotc/typer/Implicits.scala +++ b/src/dotty/tools/dotc/typer/Implicits.scala @@ -531,11 +531,11 @@ trait Implicits { self: Typer => } /** If the (result types of) the expected type, and both alternatives - * are all numeric value types, return the alternative which is - * the smaller numeric subtype, if it exists. (This alternative is then - * discarded). + * are all numeric value types, return the alternative which has + * the smaller numeric subtype as result type, if it exists. + * (This alternative is then discarded). */ - def tieBreak(alt1: SearchSuccess, alt2: SearchSuccess): SearchResult = { + def numericValueTieBreak(alt1: SearchSuccess, alt2: SearchSuccess): SearchResult = { def isNumeric(tp: Type) = tp.typeSymbol.isNumericValueClass def isProperSubType(tp1: Type, tp2: Type) = tp1.isValueSubType(tp2) && !tp2.isValueSubType(tp1) @@ -558,7 +558,7 @@ trait Implicits { self: Typer => println(i"ambiguous refs: ${hits map (_.ref) map (_.show) mkString ", "}") isAsGood(best.ref, alt.ref, explain = true)(ctx.fresh.withExploreTyperState) */ - tieBreak(best, alt) match { + numericValueTieBreak(best, alt) match { case eliminated: SearchSuccess => condense(hits.filter(_ ne eliminated)) case _ => new AmbiguousImplicits(best.ref, alt.ref, pt, argument) } |