aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dotty/tools/dotc/core/Annotations.scala2
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala2
-rw-r--r--src/dotty/tools/dotc/core/Symbols.scala2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/dotty/tools/dotc/core/Annotations.scala b/src/dotty/tools/dotc/core/Annotations.scala
index 2ced6cb8a..f8514bb2d 100644
--- a/src/dotty/tools/dotc/core/Annotations.scala
+++ b/src/dotty/tools/dotc/core/Annotations.scala
@@ -49,5 +49,5 @@ object Annotations {
def makeNestedAnnotArg(annot: Annotation): Tree = annot.tree
def ThrowsAnnotation(cls: ClassSymbol)(implicit ctx: Context) =
- Annotation(defn.ThrowsAnnot, Ident(TypeRef(cls.owner.thisType, cls.name)))
+ Annotation(defn.ThrowsAnnot, Ident(cls.symbolicRef))
} \ No newline at end of file
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index ab52a188f..f9ca96e97 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -883,7 +883,7 @@ object SymDenotations {
val from = denot.moduleClass.denot.asClass
denot.setFlag(from.flags.toTermFlags & RetainedModuleFlags)
denot.annotations = from.annotations filter (_.appliesToModule)
- denot.info = TypeRef(denot.owner.thisType, mclass)
+ denot.info = mclass.symbolicRef
denot.privateWithin = from.privateWithin
}
}
diff --git a/src/dotty/tools/dotc/core/Symbols.scala b/src/dotty/tools/dotc/core/Symbols.scala
index c37bd0bdc..7e4cb2a69 100644
--- a/src/dotty/tools/dotc/core/Symbols.scala
+++ b/src/dotty/tools/dotc/core/Symbols.scala
@@ -123,7 +123,7 @@ trait Symbols { this: Context =>
val mdenot = SymDenotation(
module, owner, name,
flags & RetainedModuleFlags | ModuleCreationFlags,
- if (cdenot.isCompleted) TypeRef(owner.thisType, modcls)
+ if (cdenot.isCompleted) modcls.symbolicRef
else new LazyModuleInfo(modcls)(condensed))
module.denot = mdenot
modcls.denot = cdenot