diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxInlineCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxInlineCodegenTestGenerated.java index 3cb5aa9d838..6a2144c42a5 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxInlineCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirBlackBoxInlineCodegenTestGenerated.java @@ -158,6 +158,18 @@ public class FirBlackBoxInlineCodegenTestGenerated extends AbstractFirBlackBoxIn runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxInlineCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxInlineCodegenTestGenerated.java index 7d5ef78bca6..b4e4109f916 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxInlineCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxInlineCodegenTestGenerated.java @@ -158,6 +158,18 @@ public class FirLightTreeBlackBoxInlineCodegenTestGenerated extends AbstractFirL runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java index ca17cef90e7..b91e529a477 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java @@ -158,6 +158,18 @@ public class FirSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends A runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { diff --git a/compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt b/compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt new file mode 100644 index 00000000000..8ced37ed554 --- /dev/null +++ b/compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt @@ -0,0 +1,17 @@ +// NO_CHECK_LAMBDA_INLINING +// MODULE: lib +// FILE: lib.kt +package lib + +open class C { + fun o() = "O" + val k = "K" +} + +inline fun inlineFun(f: () -> String = { val cc = object : C() {}; cc.o() + cc.k; }): String { + return f() +} + +// MODULE: main(lib) +// FILE: box.kt +fun box() = lib.inlineFun() \ No newline at end of file diff --git a/compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt b/compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt new file mode 100644 index 00000000000..094c21fbcdb --- /dev/null +++ b/compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt @@ -0,0 +1,18 @@ +// NO_CHECK_LAMBDA_INLINING +// MODULE: lib +// FILE: lib.kt +package lib + +open class C { + fun o() = "O" + val k = "K" +} + +inline fun inlineFun(): String { + val cc = object : C() {} + return cc.o() + cc.k +} + +// MODULE: main(lib) +// FILE: box.kt +fun box() = lib.inlineFun() \ No newline at end of file diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxInlineCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxInlineCodegenTestGenerated.java index 1bd2c44a3e8..7645f145f17 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxInlineCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/BlackBoxInlineCodegenTestGenerated.java @@ -158,6 +158,18 @@ public class BlackBoxInlineCodegenTestGenerated extends AbstractBlackBoxInlineCo runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java index 299c6ac049f..2a80ee5086c 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/CompileKotlinAgainstInlineKotlinTestGenerated.java @@ -158,6 +158,18 @@ public class CompileKotlinAgainstInlineKotlinTestGenerated extends AbstractCompi runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxInlineCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxInlineCodegenTestGenerated.java index 521680e97d9..e001762caec 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxInlineCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxInlineCodegenTestGenerated.java @@ -158,6 +158,18 @@ public class IrBlackBoxInlineCodegenTestGenerated extends AbstractIrBlackBoxInli runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrCompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrCompileKotlinAgainstInlineKotlinTestGenerated.java index f3926275054..6222c097971 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrCompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrCompileKotlinAgainstInlineKotlinTestGenerated.java @@ -158,6 +158,18 @@ public class IrCompileKotlinAgainstInlineKotlinTestGenerated extends AbstractIrC runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java index bc4250a6257..621796ce945 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated.java @@ -158,6 +158,18 @@ public class IrSerializeCompileKotlinAgainstInlineKotlinTestGenerated extends Ab runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxInlineTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxInlineTestGenerated.java index fa890ed8ede..23f4ff55fc6 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxInlineTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmIrAgainstOldBoxInlineTestGenerated.java @@ -158,6 +158,18 @@ public class JvmIrAgainstOldBoxInlineTestGenerated extends AbstractJvmIrAgainstO runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxInlineTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxInlineTestGenerated.java index 48a54397bcb..65b450e28a8 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxInlineTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/JvmOldAgainstIrBoxInlineTestGenerated.java @@ -158,6 +158,18 @@ public class JvmOldAgainstIrBoxInlineTestGenerated extends AbstractJvmOldAgainst runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenInlineTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenInlineTestGenerated.java index 1bbfda93cca..5753206610a 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenInlineTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/JsCodegenInlineTestGenerated.java @@ -158,6 +158,18 @@ public class JsCodegenInlineTestGenerated extends AbstractJsCodegenInlineTest { runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenInlineTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenInlineTestGenerated.java index 5ddf65e0eee..f2af89e5a1e 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenInlineTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/test/ir/IrJsCodegenInlineTestGenerated.java @@ -158,6 +158,18 @@ public class IrJsCodegenInlineTestGenerated extends AbstractIrJsCodegenInlineTes runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { diff --git a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxInlineWasmTestGenerated.java b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxInlineWasmTestGenerated.java index 9b2242ca047..7dcccabf3f6 100644 --- a/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxInlineWasmTestGenerated.java +++ b/js/js.tests/tests-gen/org/jetbrains/kotlin/js/testOld/wasm/semantics/IrCodegenBoxInlineWasmTestGenerated.java @@ -150,6 +150,16 @@ public class IrCodegenBoxInlineWasmTestGenerated extends AbstractIrCodegenBoxInl runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception { runTest("compiler/testData/codegen/boxInline/anonymousObject/functionExpression.kt"); diff --git a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java index 0eabd570925..3c86f9fbabe 100644 --- a/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java +++ b/native/native.tests/tests-gen/org/jetbrains/kotlin/konan/blackboxtest/NativeCodegenBoxTestGenerated.java @@ -39230,6 +39230,18 @@ public class NativeCodegenBoxTestGenerated extends AbstractNativeCodegenBoxTest runTest("compiler/testData/codegen/boxInline/anonymousObject/defineClass.kt"); } + @Test + @TestMetadata("fakeOverrideInDefaultMultiModule.kt") + public void testFakeOverrideInDefaultMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideInDefaultMultiModule.kt"); + } + + @Test + @TestMetadata("fakeOverrideMultiModule.kt") + public void testFakeOverrideMultiModule() throws Exception { + runTest("compiler/testData/codegen/boxInline/anonymousObject/fakeOverrideMultiModule.kt"); + } + @Test @TestMetadata("functionExpression.kt") public void testFunctionExpression() throws Exception {