[JVM_IR] Fix inlining of callable references to extension methods.

Check directly that the referenced function is an extension
function instead of relying on the annotation on the type.

^ KT-47988 Fixed.
This commit is contained in:
Mads Ager
2021-08-09 16:01:20 +02:00
committed by max-kammerer
parent 1760befa37
commit 608b88996a
10 changed files with 62 additions and 3 deletions
@@ -2311,6 +2311,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
runTest("compiler/testData/codegen/box/callableReference/kt46902.kt");
}
@TestMetadata("kt47988.kt")
public void testKt47988() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/kt47988.kt");
}
@TestMetadata("nested.kt")
public void testNested() throws Exception {
runTest("compiler/testData/codegen/box/callableReference/nested.kt");