diff options
author | Martin Odersky <odersky@gmail.com> | 2017-01-25 11:20:09 +1100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-02-08 19:35:58 +1100 |
commit | 971b233bc916ddbb4501f480500f9531fab99f78 (patch) | |
tree | cb5fc61663a56ff62d4df8fa92265c74cc8e58af /compiler/src/dotty/tools/dotc/parsing | |
parent | da7d7231b7f21fe1085abc569eb783590074a359 (diff) | |
download | dotty-971b233bc916ddbb4501f480500f9531fab99f78.tar.gz dotty-971b233bc916ddbb4501f480500f9531fab99f78.tar.bz2 dotty-971b233bc916ddbb4501f480500f9531fab99f78.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')
0 files changed, 0 insertions, 0 deletions