From c37e8f45cf86d0a3f6cb084e85f9751f5e906bf2 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 7 Sep 2011 17:48:56 +0000 Subject: Fixes #1000349: Dot completion doesn't work whe... Fixes #1000349: Dot completion doesn't work when calling a no-arg method with no parens --- src/compiler/scala/tools/nsc/interactive/Global.scala | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler') diff --git a/src/compiler/scala/tools/nsc/interactive/Global.scala b/src/compiler/scala/tools/nsc/interactive/Global.scala index 69cd2d1ef7..f14ec42d74 100644 --- a/src/compiler/scala/tools/nsc/interactive/Global.scala +++ b/src/compiler/scala/tools/nsc/interactive/Global.scala @@ -858,9 +858,11 @@ class Global(settings: Settings, reporter: Reporter, projectName: String = "") } val pre = stabilizedType(tree) + val ownerTpe = tree.tpe match { case analyzer.ImportType(expr) => expr.tpe case null => pre + case MethodType(List(), rtpe) => rtpe case _ => tree.tpe } -- cgit v1.2.3