JVM: do not use crossinline flag when inlining assertions
Crossinline lambdas *can* be inlined into objects, but don't *have* to; the correct place should be determined from the context, not from the parameter.
This commit is contained in:
+6
@@ -882,6 +882,12 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn
|
||||
runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineLambdaDeclarationSiteOnly.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmCrossinlineRedundant.kt")
|
||||
public void testJvmCrossinlineRedundant() throws Exception {
|
||||
runTest("compiler/testData/codegen/boxInline/assert/jvmCrossinlineRedundant.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("jvmCrossinlineSAMDeclarationSite.kt")
|
||||
public void testJvmCrossinlineSAMDeclarationSite() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user