diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2016-04-14 14:00:33 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2016-06-01 11:19:54 +1000 |
commit | e077c24525bf8f9bd8b73684e630eb7fc6bcb5f6 (patch) | |
tree | ad9468ed7023c9cbf129585aea73730413d3e2af /test/files/run/t5652c.check | |
parent | f01d061caaae26b3fdff0e4db800292e9b3252c2 (diff) | |
download | scala-e077c24525bf8f9bd8b73684e630eb7fc6bcb5f6.tar.gz scala-e077c24525bf8f9bd8b73684e630eb7fc6bcb5f6.tar.bz2 scala-e077c24525bf8f9bd8b73684e630eb7fc6bcb5f6.zip |
SI-9390 Emit local defs that don't capture this as static
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.
Diffstat (limited to 'test/files/run/t5652c.check')
-rw-r--r-- | test/files/run/t5652c.check | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/t5652c.check b/test/files/run/t5652c.check index 3b889e066d..5a6d535f02 100644 --- a/test/files/run/t5652c.check +++ b/test/files/run/t5652c.check @@ -1,6 +1,6 @@ -public final int A1.A1$$g$1() -public final int A1.A1$$g$2() public int A1.f1() public int A1.f2() +public static final int A1.A1$$g$1() +public static final int A1.A1$$g$2() 1 2 |