aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/t2130-1.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-09-12 18:53:53 +0200
committerMartin Odersky <odersky@gmail.com>2016-10-02 16:12:28 +0200
commit4de907a313e9b85058cd9611116a1cbcf2bd3a4f (patch)
tree6992c2247f9a7e0b3b623e36da8ccfb1e2de461c /tests/pos/t2130-1.scala
parent7537cfcfa5ccf47d400e2841b9bc4ff2cac1eada (diff)
downloaddotty-4de907a313e9b85058cd9611116a1cbcf2bd3a4f.tar.gz
dotty-4de907a313e9b85058cd9611116a1cbcf2bd3a4f.tar.bz2
dotty-4de907a313e9b85058cd9611116a1cbcf2bd3a4f.zip
Always use implicit context at the current period
An implicit method might be unpickled in one run and the implicit body might be selected first in a subsequent run. In that case the inlined code was read with the original context, but that context needs to run at the current period. This resulted in denotation out of date errors in bringForward. Another problem with this design was space leaks: An context might survive multiple runs as part of an ImplicitInfo of an unpickled method. The new design avoids both problems. Implicit contexts are always up to date and leaks are avoided.
Diffstat (limited to 'tests/pos/t2130-1.scala')
0 files changed, 0 insertions, 0 deletions