diff options
author | Martin Odersky <odersky@gmail.com> | 2017-01-25 11:20:09 +1100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-01-31 16:14:18 +1100 |
commit | 30f3ea1710203b7ccd004bdee414389342d589dc (patch) | |
tree | 322c063a377ec04c7036bf39c8da25b2fd831b37 /compiler/src/dotty/tools/dotc/parsing/Parsers.scala | |
parent | d087448fdffff8f64a23d9db39445455cddc2fc6 (diff) | |
download | dotty-30f3ea1710203b7ccd004bdee414389342d589dc.tar.gz dotty-30f3ea1710203b7ccd004bdee414389342d589dc.tar.bz2 dotty-30f3ea1710203b7ccd004bdee414389342d589dc.zip |
Avoid recomputation of companionRefs
The previous condition for caching companionRefs contained a condition
result.companionRefs.forall(implicitScopeCache.contains)
which was always false because we cache types in `implicitCodeCache`, not
companion refs. The new logic fixes this and does not need a second traversal
because it is integrated in `iscopeRefs`.
Diffstat (limited to 'compiler/src/dotty/tools/dotc/parsing/Parsers.scala')
0 files changed, 0 insertions, 0 deletions