aboutsummaryrefslogtreecommitdiff
path: root/compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2017-02-13 20:34:46 +0100
committerGuillaume Martres <smarter@ubuntu.com>2017-02-18 23:35:34 +0100
commit7e53f17c19d02e28c59298e5c6c05d7d2aa5bee8 (patch)
treebd29cdac35cdd4d0be97c5c47af2d3547f569cb7 /compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
parent3913b9eaa15dbed77f702696fc79a4ad697d6585 (diff)
downloaddotty-7e53f17c19d02e28c59298e5c6c05d7d2aa5bee8.tar.gz
dotty-7e53f17c19d02e28c59298e5c6c05d7d2aa5bee8.tar.bz2
dotty-7e53f17c19d02e28c59298e5c6c05d7d2aa5bee8.zip
TreeUnpickler: do not capture Context in Annotation tree
Diffstat (limited to 'compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala')
-rw-r--r--compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala2
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")
}