diff options
author | Simon Ochsenreither <simon@ochsenreither.de> | 2013-11-23 22:45:40 +0100 |
---|---|---|
committer | Simon Ochsenreither <simon@ochsenreither.de> | 2013-12-14 02:29:10 +0100 |
commit | f7f80e8b27c9255590ef8598c97601957a962adf (patch) | |
tree | 297deee2b08e22c3dba0a52a25f7ea2f663413d2 /test/files/pos/t802.scala | |
parent | 6c63ab153651f7946ece5740d52e0f2b701e349d (diff) | |
download | scala-f7f80e8b27c9255590ef8598c97601957a962adf.tar.gz scala-f7f80e8b27c9255590ef8598c97601957a962adf.tar.bz2 scala-f7f80e8b27c9255590ef8598c97601957a962adf.zip |
SI-7971 Handle static field initializers correctly
Before this fix, static fields where erroneously treated like instance
fields and the initialization was moved into the constructor.
With this fix, the static initializer statements go into the static
initializer of the class (called “<STATIC> def init” in Scala,
<clinit> in Java). The statements are added to an existing
static initializer method or, if no such method exists, a new static
initializer method is created and added to the class.
Diffstat (limited to 'test/files/pos/t802.scala')
0 files changed, 0 insertions, 0 deletions