aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/tasty
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-05-23 10:52:48 +0200
committerMartin Odersky <odersky@gmail.com>2016-05-23 12:01:41 +0200
commitbef7363e3c04ec444176752e187c62b8d20c8961 (patch)
tree5f9af29ed03dc0900eb94088a076604bc1323cd4 /src/dotty/tools/dotc/core/tasty
parentc204a962d32bc6ee64256501d7dfe6efabeccc9f (diff)
downloaddotty-bef7363e3c04ec444176752e187c62b8d20c8961.tar.gz
dotty-bef7363e3c04ec444176752e187c62b8d20c8961.tar.bz2
dotty-bef7363e3c04ec444176752e187c62b8d20c8961.zip
Refine owner trees for templates
Include member defs inside templates in the enclosing class, otherwise they would get localDummy as onwer.
Diffstat (limited to 'src/dotty/tools/dotc/core/tasty')
-rw-r--r--src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala b/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
index 9598fc0c5..787b89ef8 100644
--- a/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
+++ b/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala
@@ -153,7 +153,7 @@ class TreeUnpickler(reader: TastyReader, tastyName: TastyName.Table) {
/** Record all directly nested definitions and templates between current address and `end`
* as `OwnerTree`s in `buf`
*/
- def scanTrees(buf: ListBuffer[OwnerTree], end: Addr, mode: MemberDefMode): Unit = {
+ def scanTrees(buf: ListBuffer[OwnerTree], end: Addr, mode: MemberDefMode = AllDefs): Unit = {
while (currentAddr.index < end.index) scanTree(buf, mode)
assert(currentAddr.index == end.index)
}