summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-04-13 03:25:51 +0000
committerPaul Phillips <paulp@improving.org>2011-04-13 03:25:51 +0000
commit4e9a38be508eaad2c0376206a9dad68d6f84afa6 (patch)
treea0fe66dd9b44757cf8b855ae0411236aa265a618 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parenta3b106bf60ca020fad8eb502f598bff390a7b49b (diff)
downloadscala-4e9a38be508eaad2c0376206a9dad68d6f84afa6.tar.gz
scala-4e9a38be508eaad2c0376206a9dad68d6f84afa6.tar.bz2
scala-4e9a38be508eaad2c0376206a9dad68d6f84afa6.zip
An alteration to r24740 to fix failing test fil...
An alteration to r24740 to fix failing test files/neg/sensitive.scala. Review by odersky.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 7ccef83d49..4e527c4189 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -1002,7 +1002,7 @@ trait Typers extends Modes {
// this happens if implicits are ambiguous; try again with more context info.
// println("last ditch effort: "+qual+" . "+name)
context.tree match {
- case Apply(tree1, args) if tree1 eq tree => // try handling the arguments
+ case Apply(tree1, args) if (tree1 eq tree) && args.nonEmpty => // try handling the arguments
// println("typing args: "+args)
silent(_.typedArgs(args, mode)) match {
case args: List[_] =>