diff options
author | Martin Odersky <odersky@gmail.com> | 2011-09-07 17:48:56 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2011-09-07 17:48:56 +0000 |
commit | c37e8f45cf86d0a3f6cb084e85f9751f5e906bf2 (patch) | |
tree | a0d15b05e009c34aae3c21e387cc88f4b15ec54c | |
parent | 8cd3eae681f938ceb64578ffa8bdc69d85c20781 (diff) | |
download | scala-c37e8f45cf86d0a3f6cb084e85f9751f5e906bf2.tar.gz scala-c37e8f45cf86d0a3f6cb084e85f9751f5e906bf2.tar.bz2 scala-c37e8f45cf86d0a3f6cb084e85f9751f5e906bf2.zip |
Fixes #1000349: Dot completion doesn't work whe...
Fixes #1000349: Dot completion doesn't work when calling a no-arg method
with no parens
-rw-r--r-- | src/compiler/scala/tools/nsc/interactive/Global.scala | 2 |
1 files changed, 2 insertions, 0 deletions
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 } |