| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
GenBCode checks if class already has static initialiser,
the check is fooled if class inherited a static initialisers.
|
|
|
|
| |
This broke lazy vals, as unsafe offsets were not initialised.
|
|
|
|
| |
Nicely spotted by Ycheck.
|
|
|
|
|
|
|
| |
Now moveStatics can correctly create static constructors for objects.
Those static constructors would later be merged with synthetic module
initialisers by GenBCode. This is a bit of magic, it would be good
to move all this into this phase.
|
|
|
|
|
| |
Unlink the static from the old scope,
and don't drop top-level trees that are not TypeDefs.
|
|
As a funny side-effect this allows to execute arbitrary code in static
initialisers:
@static val a: Unit = {println("loaded")}
|