aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Annotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-04-09 15:04:43 +0200
committerMartin Odersky <odersky@gmail.com>2013-04-09 15:06:27 +0200
commit442c361aee87266fe6428f1d9a5da7de934c8cef (patch)
tree0b98d9bcd202a6cad92cb75248722d8d6e100312 /src/dotty/tools/dotc/core/Annotations.scala
parentd1c2fe7ab3b2cddb224f24ce37fdc0bf4237d5a4 (diff)
downloaddotty-442c361aee87266fe6428f1d9a5da7de934c8cef.tar.gz
dotty-442c361aee87266fe6428f1d9a5da7de934c8cef.tar.bz2
dotty-442c361aee87266fe6428f1d9a5da7de934c8cef.zip
Added initial denotations to NamedType where feasible.
Diffstat (limited to 'src/dotty/tools/dotc/core/Annotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/Annotations.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/core/Annotations.scala b/src/dotty/tools/dotc/core/Annotations.scala
index 1a07443ea..3226e69ea 100644
--- a/src/dotty/tools/dotc/core/Annotations.scala
+++ b/src/dotty/tools/dotc/core/Annotations.scala
@@ -54,10 +54,10 @@ object Annotations {
deferred(atp.typeSymbol, New(atp, args))
def makeAlias(sym: TermSymbol)(implicit ctx: Context) =
- apply(defn.AliasAnnot, List(Ident(TermRef(sym.owner.thisType, sym.name, sym.signature))))
+ apply(defn.AliasAnnot, List(Ident(TermRef(sym.owner.thisType, sym.name, sym.signature).withDenot(sym))))
def makeChild(sym: Symbol)(implicit ctx: Context) =
- apply(defn.ChildAnnot.typeConstructor.appliedTo(NamedType(sym.owner.thisType, sym.name)), Nil)
+ apply(defn.ChildAnnot.typeConstructor.appliedTo(NamedType(sym.owner.thisType, sym.name).withDenot(sym)), Nil)
}
def ThrowsAnnotation(cls: ClassSymbol)(implicit ctx: Context) =