summaryrefslogtreecommitdiff
path: root/test/files/run/t9390b.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-9390 Emit local defs that don't capture this as staticJason Zaugg2016-06-011-0/+31
This avoids unnecessary memory retention, and allows lambdas that call the local methods to be serializable, regardless of whether or not the enclosing class is serializable. The second point is especially pressing, given that the enclosing class for local methods defined in a used to be the (serializable) anonymous function class, but as of Scala 2.12 will be the enclosing class of the lambda. This change is similar in spirit to SI-9408 / 93bee55e.