[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:
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/es6/semantics/IrJsCodegenBoxES6TestGenerated.java
Generated
+5
@@ -1571,6 +1571,11 @@ public class IrJsCodegenBoxES6TestGenerated extends AbstractIrJsCodegenBoxES6Tes
|
||||
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");
|
||||
|
||||
Generated
+5
@@ -1571,6 +1571,11 @@ public class IrJsCodegenBoxTestGenerated extends AbstractIrJsCodegenBoxTest {
|
||||
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");
|
||||
|
||||
Generated
+5
@@ -1571,6 +1571,11 @@ public class JsCodegenBoxTestGenerated extends AbstractJsCodegenBoxTest {
|
||||
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");
|
||||
|
||||
js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/wasm/semantics/IrCodegenBoxWasmTestGenerated.java
Generated
+5
@@ -1346,6 +1346,11 @@ public class IrCodegenBoxWasmTestGenerated extends AbstractIrCodegenBoxWasmTest
|
||||
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");
|
||||
|
||||
Reference in New Issue
Block a user