JVM: generate $assertionsDisabled before inlining the node

This fixes the problem where compiling a class initializer that contains
a call to an `assert`ing function in a separate module causes the
assertion to always be enabled (i.e. the attached test used to fail in
CompileKotlinAgainstInlineKotlin mode).
This commit is contained in:
pyos
2019-10-10 13:20:48 +02:00
committed by Ilmir Usmanov
parent d8ad0ec43a
commit bc4be53569
6 changed files with 69 additions and 9 deletions
@@ -640,6 +640,11 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo
runTest("compiler/testData/codegen/boxInline/assert/jvmAssertInlineLambda.kt");
}
@TestMetadata("jvmClassInitializer.kt")
public void testJvmClassInitializer() throws Exception {
runTest("compiler/testData/codegen/boxInline/assert/jvmClassInitializer.kt");
}
@TestMetadata("jvmCompanion.kt")
public void testJvmCompanion() throws Exception {
runTest("compiler/testData/codegen/boxInline/assert/jvmCompanion.kt");