diff options
-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 } |