JVM IR: Turn static callable references into singletons

This commit is contained in:
Steven Schäfer
2020-03-05 11:35:51 +01:00
committed by Dmitry Petrov
parent ac5c255c20
commit bb5a639153
9 changed files with 196 additions and 10 deletions
@@ -2396,6 +2396,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/callableReference/function/specialCalls.kt");
}
@TestMetadata("staticFunctionReference.kt")
public void testStaticFunctionReference() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/staticFunctionReference.kt");
}
@TestMetadata("topLevelFromClass.kt")
public void testTopLevelFromClass() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/function/topLevelFromClass.kt");
@@ -4182,6 +4187,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
runTest("compiler/testData/codegen/box/closures/simplestClosureAndBoxing.kt");
}
@TestMetadata("staticLambda.kt")
public void testStaticLambda() throws Exception {
runTest("compiler/testData/codegen/box/closures/staticLambda.kt");
}
@TestMetadata("subclosuresWithinInitializers.kt")
public void testSubclosuresWithinInitializers() throws Exception {
runTest("compiler/testData/codegen/box/closures/subclosuresWithinInitializers.kt");