aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/ImportInfo.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/typer/ImportInfo.scala')
-rw-r--r--src/dotty/tools/dotc/typer/ImportInfo.scala8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/typer/ImportInfo.scala b/src/dotty/tools/dotc/typer/ImportInfo.scala
index b7c8f47e9..3f668ecb6 100644
--- a/src/dotty/tools/dotc/typer/ImportInfo.scala
+++ b/src/dotty/tools/dotc/typer/ImportInfo.scala
@@ -4,8 +4,12 @@ package typer
import ast.untpd._
import core._
-import Symbols._
+import Symbols._, Names._, Denotations._, Types._, Contexts._
case class ImportInfo(sym: Symbol, selectors: List[Tree], scopeNestingLevel: Int) {
-
+ /** The (TermRef) type of the qualifier of the import clause */
+ def site(implicit ctx: Context): Type = {
+ val ImportType(expr) = sym.info
+ expr.tpe
+ }
} \ No newline at end of file