diff options
author | Dmitry Petrashko <dark@d-d.me> | 2015-05-15 20:21:20 +0200 |
---|---|---|
committer | Dmitry Petrashko <dark@d-d.me> | 2015-05-15 20:21:20 +0200 |
commit | 0edb02b43fec0fd26cf7ed3977a489f20ab06621 (patch) | |
tree | b2be600ab0b5ea5799720cf445de353fd2ba0218 | |
parent | 6d36499ce515d3931c9c6f319f0f082e9d3ae0e0 (diff) | |
parent | 743c6bb43334c70581f99c849b14ecab5981544e (diff) | |
download | dotty-0edb02b43fec0fd26cf7ed3977a489f20ab06621.tar.gz dotty-0edb02b43fec0fd26cf7ed3977a489f20ab06621.tar.bz2 dotty-0edb02b43fec0fd26cf7ed3977a489f20ab06621.zip |
Merge pull request #574 from dotty-staging/fix/#568
Make Child annotation lazy
-rw-r--r-- | src/dotty/tools/dotc/core/Annotations.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/Annotations.scala b/src/dotty/tools/dotc/core/Annotations.scala index 0dc7113f2..6d0fba337 100644 --- a/src/dotty/tools/dotc/core/Annotations.scala +++ b/src/dotty/tools/dotc/core/Annotations.scala @@ -90,7 +90,8 @@ object Annotations { ref(TermRef.withSigAndDenot(sym.owner.thisType, sym.name, sym.signature, sym)))) def makeChild(sym: Symbol)(implicit ctx: Context) = - apply(defn.ChildAnnot.typeRef.appliedTo(sym.owner.thisType.select(sym.name, sym)), Nil) + deferred(defn.ChildAnnot, + implicit ctx => New(defn.ChildAnnot.typeRef.appliedTo(sym.owner.thisType.select(sym.name, sym)), Nil)) } def ThrowsAnnotation(cls: ClassSymbol)(implicit ctx: Context) = { |