diff options
author | Todd Vierling <tv@duh.org> | 2014-05-09 13:09:49 -0400 |
---|---|---|
committer | Todd Vierling <tv@duh.org> | 2014-05-09 13:14:48 -0400 |
commit | bed189ec8c373dfd429d424256dfbfcc17ac4221 (patch) | |
tree | 68a380815061ccf346fa18a892301f53c5272c7e /test/files/run | |
parent | 251616a107f4255203e318c9f6342f774d25e66d (diff) | |
download | scala-bed189ec8c373dfd429d424256dfbfcc17ac4221.tar.gz scala-bed189ec8c373dfd429d424256dfbfcc17ac4221.tar.bz2 scala-bed189ec8c373dfd429d424256dfbfcc17ac4221.zip |
@inline Predef.identity[A].
Since identity[A] is often used as a function directly supplied to
methods requiring (A)=>A, there's no need to have the generated
Function1 object contain an explicit call to identity[A]().
This implementation isn't going to change, so let the synthetic
Function1 elide the extra call, generating just "aload_1; areturn".
Diffstat (limited to 'test/files/run')
0 files changed, 0 insertions, 0 deletions