Generate linenumberts in objects clinit

This commit is contained in:
Michael Bogdanov
2015-10-09 09:49:03 +03:00
parent afa281357a
commit ae15443413
2 changed files with 2 additions and 0 deletions
@@ -999,6 +999,7 @@ public class ImplementationBodyCodegen extends ClassBodyCodegen {
// Invoke the object constructor but ignore the result because INSTANCE$ will be initialized in the first line of <init>
InstructionAdapter v = createOrGetClInitCodegen().v;
markLineNumberForSyntheticFunction(descriptor, v);
v.anew(classAsmType);
v.invokespecial(classAsmType.getInternalName(), "<init>", "()V", false);
if (isCompanionObjectWithBackingFieldsInOuter(descriptor)) {
@@ -31,6 +31,7 @@ fwBackingField.kt:38
fwBackingField.kt:62
fwBackingField.kt:45
fwBackingField.kt:48
fwBackingField.kt:43
fwBackingField.kt:62
fwBackingField.kt:45
fwBackingField.kt:51