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:
+5
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user