aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Symbols.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-04-22 16:19:58 +0200
committerMartin Odersky <odersky@gmail.com>2015-04-22 17:19:35 +0200
commita884556d910b333f6d550ef7624c100d476862b7 (patch)
tree77c1759240f136f906f3bef603a30b8fea32ba86 /src/dotty/tools/dotc/core/Symbols.scala
parent79958518b4f95b3dd8e34d543757034d181e4514 (diff)
downloaddotty-a884556d910b333f6d550ef7624c100d476862b7.tar.gz
dotty-a884556d910b333f6d550ef7624c100d476862b7.tar.bz2
dotty-a884556d910b333f6d550ef7624c100d476862b7.zip
Anchor import symbols at current owner
Needed to harmonize behavior of Typer/Namer and tpd. This is needed for making pickling, then unpickling the identity.
Diffstat (limited to 'src/dotty/tools/dotc/core/Symbols.scala')
-rw-r--r--src/dotty/tools/dotc/core/Symbols.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala
index b482dcae4..bce0a5450 100644
--- a/src/dotty/tools/dotc/core/Symbols.scala
+++ b/src/dotty/tools/dotc/core/Symbols.scala
@@ -228,8 +228,8 @@ trait Symbols { this: Context =>
newSymbol(cls, nme.localDummyName(cls), EmptyFlags, NoType)
/** Create an import symbol pointing back to given qualifier `expr`. */
- def newImportSymbol(expr: Tree, coord: Coord = NoCoord) =
- newSymbol(NoSymbol, nme.IMPORT, EmptyFlags, ImportType(expr), coord = coord)
+ def newImportSymbol(owner: Symbol, expr: Tree, coord: Coord = NoCoord) =
+ newSymbol(owner, nme.IMPORT, EmptyFlags, ImportType(expr), coord = coord)
/** Create a class constructor symbol for given class `cls`. */
def newConstructor(cls: ClassSymbol, flags: FlagSet, paramNames: List[TermName], paramTypes: List[Type], privateWithin: Symbol = NoSymbol, coord: Coord = NoCoord) =