diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-02-13 20:34:46 +0100 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2017-02-18 23:35:34 +0100 |
commit | 7e53f17c19d02e28c59298e5c6c05d7d2aa5bee8 (patch) | |
tree | bd29cdac35cdd4d0be97c5c47af2d3547f569cb7 /compiler/src | |
parent | 3913b9eaa15dbed77f702696fc79a4ad697d6585 (diff) | |
download | dotty-7e53f17c19d02e28c59298e5c6c05d7d2aa5bee8.tar.gz dotty-7e53f17c19d02e28c59298e5c6c05d7d2aa5bee8.tar.bz2 dotty-7e53f17c19d02e28c59298e5c6c05d7d2aa5bee8.zip |
TreeUnpickler: do not capture Context in Annotation tree
Diffstat (limited to 'compiler/src')
-rw-r--r-- | compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala index d73c557f1..55de06b3e 100644 --- a/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala +++ b/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala @@ -554,7 +554,7 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table, posUnpickle val end = readEnd() val tp = readType() val lazyAnnotTree = readLater(end, rdr => ctx => rdr.readTerm()(ctx)) - annots += Annotation.deferredSymAndTree(tp.typeSymbol, _ => lazyAnnotTree.complete) + annots += Annotation.deferredSymAndTree(tp.typeSymbol, implicit ctx => lazyAnnotTree.complete) case tag => assert(false, s"illegal modifier tag $tag at $currentAddr, end = $end") } |