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:
pyos
2021-07-06 10:57:48 +02:00
committed by max-kammerer
parent e64cda61d5
commit 50797dba8d
13 changed files with 191 additions and 27 deletions
@@ -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 {