From 6ddd2c60a77024b82372f111c9cc2979cbde0ee4 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 3 Nov 2013 16:06:26 +0100 Subject: Fixing a problem in overloading resolution. --- src/dotty/tools/dotc/typer/Applications.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dotty/tools/dotc/typer') diff --git a/src/dotty/tools/dotc/typer/Applications.scala b/src/dotty/tools/dotc/typer/Applications.scala index 1d564caee..794c7e752 100644 --- a/src/dotty/tools/dotc/typer/Applications.scala +++ b/src/dotty/tools/dotc/typer/Applications.scala @@ -781,6 +781,8 @@ trait Applications extends Compatibility { self: Typer => else if (numParams < numArgs) isVarArgs else if (numParams > numArgs + 1) hasDefault else isVarArgs || hasDefault + case _ => + numArgs == 0 } def narrowBySize(alts: List[TermRef]): List[TermRef] = -- cgit v1.2.3