diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java index 8f6596e45a2..d77fa034cbb 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosticCompilerTestFE10TestdataTestGenerated.java @@ -22276,6 +22276,18 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia runTest("compiler/testData/diagnostics/tests/j+k/intersectionWithJavaVoidNothing.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/diagnostics/tests/j+k/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/diagnostics/tests/j+k/invisibleFake2.kt"); + } + @Test @TestMetadata("invisiblePackagePrivateInheritedMember.kt") public void testInvisiblePackagePrivateInheritedMember() { diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java index 7ab7f8c7be2..4a081de4e39 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirBlackBoxCodegenBasedTestGenerated.java @@ -33438,6 +33438,18 @@ public class LLFirBlackBoxCodegenBasedTestGenerated extends AbstractLLFirBlackBo runTest("compiler/testData/codegen/box/javaInterop/inheritanceWithWildcard.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake2.kt"); + } + @Test @TestMetadata("javaForKotlinOverrideProperty.kt") public void testJavaForKotlinOverrideProperty() { diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java index f923b4db446..4190a1abc3e 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.java @@ -22276,6 +22276,18 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated runTest("compiler/testData/diagnostics/tests/j+k/intersectionWithJavaVoidNothing.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/diagnostics/tests/j+k/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/diagnostics/tests/j+k/invisibleFake2.kt"); + } + @Test @TestMetadata("invisiblePackagePrivateInheritedMember.kt") public void testInvisiblePackagePrivateInheritedMember() { diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java index e2d1ebd84b9..16713b69aa5 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/LLFirReversedBlackBoxCodegenBasedTestGenerated.java @@ -33438,6 +33438,18 @@ public class LLFirReversedBlackBoxCodegenBasedTestGenerated extends AbstractLLFi runTest("compiler/testData/codegen/box/javaInterop/inheritanceWithWildcard.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake2.kt"); + } + @Test @TestMetadata("javaForKotlinOverrideProperty.kt") public void testJavaForKotlinOverrideProperty() { diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java index 4318c034700..9eea0ec3515 100644 --- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirLightTreeOldFrontendDiagnosticsTestGenerated.java @@ -22270,6 +22270,18 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir runTest("compiler/testData/diagnostics/tests/j+k/intersectionWithJavaVoidNothing.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/diagnostics/tests/j+k/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/diagnostics/tests/j+k/invisibleFake2.kt"); + } + @Test @TestMetadata("invisiblePackagePrivateInheritedMember.kt") public void testInvisiblePackagePrivateInheritedMember() { diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java index 3fa6b6d2d23..9614792fd80 100644 --- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirPsiOldFrontendDiagnosticsTestGenerated.java @@ -22276,6 +22276,18 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia runTest("compiler/testData/diagnostics/tests/j+k/intersectionWithJavaVoidNothing.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/diagnostics/tests/j+k/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/diagnostics/tests/j+k/invisibleFake2.kt"); + } + @Test @TestMetadata("invisiblePackagePrivateInheritedMember.kt") public void testInvisiblePackagePrivateInheritedMember() { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java index 1a6e82b702f..47e39b5417f 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenTestGenerated.java @@ -33307,6 +33307,18 @@ public class FirLightTreeBlackBoxCodegenTestGenerated extends AbstractFirLightTr runTest("compiler/testData/codegen/box/javaInterop/inheritanceWithWildcard.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake2.kt"); + } + @Test @TestMetadata("javaForKotlinOverrideProperty.kt") public void testJavaForKotlinOverrideProperty() { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithFir2IrFakeOverrideGeneratorTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithFir2IrFakeOverrideGeneratorTestGenerated.java index 0ea43b9abaf..ff910530d2f 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithFir2IrFakeOverrideGeneratorTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirLightTreeBlackBoxCodegenWithFir2IrFakeOverrideGeneratorTestGenerated.java @@ -33307,6 +33307,18 @@ public class FirLightTreeBlackBoxCodegenWithFir2IrFakeOverrideGeneratorTestGener runTest("compiler/testData/codegen/box/javaInterop/inheritanceWithWildcard.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake2.kt"); + } + @Test @TestMetadata("javaForKotlinOverrideProperty.kt") public void testJavaForKotlinOverrideProperty() { diff --git a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java index 1321bea286b..fa7ce3762a6 100644 --- a/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java +++ b/compiler/fir/fir2ir/tests-gen/org/jetbrains/kotlin/test/runners/codegen/FirPsiBlackBoxCodegenTestGenerated.java @@ -33307,6 +33307,18 @@ public class FirPsiBlackBoxCodegenTestGenerated extends AbstractFirPsiBlackBoxCo runTest("compiler/testData/codegen/box/javaInterop/inheritanceWithWildcard.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake2.kt"); + } + @Test @TestMetadata("javaForKotlinOverrideProperty.kt") public void testJavaForKotlinOverrideProperty() { diff --git a/compiler/testData/codegen/box/javaInterop/invisibleFake.kt b/compiler/testData/codegen/box/javaInterop/invisibleFake.kt new file mode 100644 index 00000000000..6b9342b0b1a --- /dev/null +++ b/compiler/testData/codegen/box/javaInterop/invisibleFake.kt @@ -0,0 +1,32 @@ +// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND_K2: JVM_IR +// Reason: incorrect result FAIL B +// IGNORE_LIGHT_ANALYSIS +// ISSUE: KT-63242, KT-66324 + +// FILE: box.kt + +private open class C : B() { + override fun foo(d: Any?): String = "FAIL C" +} + +fun box(): String = + D().foo("s") + +// FILE: A.java +interface A { + String foo(Object value); +} + +abstract class B implements A { + public String foo(String value) { + return "FAIL B"; + } +} + +class D extends C { + @Override + public String foo(Object value) { + return "OK"; + } +} diff --git a/compiler/testData/codegen/box/javaInterop/invisibleFake2.kt b/compiler/testData/codegen/box/javaInterop/invisibleFake2.kt new file mode 100644 index 00000000000..3d2dd368305 --- /dev/null +++ b/compiler/testData/codegen/box/javaInterop/invisibleFake2.kt @@ -0,0 +1,27 @@ +// TARGET_BACKEND: JVM_IR +// IGNORE_BACKEND_K1: JVM_IR +// Reason: red code +// ISSUE: KT-63242, KT-66324 + +// FILE: box.kt + +private open class C : B() { + override fun foo(d: Any?): String = "FAIL" +} + +fun box(): String = + D().foo("s") + +// FILE: A.java +interface A { + String foo(Object value); +} + +abstract class B implements A { + public String foo(String value) { + return "OK"; + } +} + +class D extends C { +} diff --git a/compiler/testData/diagnostics/tests/j+k/invisibleFake.fir.overrides.txt b/compiler/testData/diagnostics/tests/j+k/invisibleFake.fir.overrides.txt new file mode 100644 index 00000000000..0aff23ba0fd --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/invisibleFake.fir.overrides.txt @@ -0,0 +1,8 @@ +D: + [Enhancement]: public open fun foo(value: R|@EnhancedNullability kotlin/Any?|): R|@EnhancedNullability kotlin/String| from Java enhancement scope for /D [id: 0] + [Source]: public open override fun foo(d: R|kotlin/Any?|): R|kotlin/String| from Use site scope of /C [id: 1] + [Enhancement]: public abstract fun foo(value: R|kotlin/Any!|): R|kotlin/String!| from Java enhancement scope for /B [id: 2] + [Enhancement]: public abstract fun foo(value: R|kotlin/Any!|): R|kotlin/String!| from Java enhancement scope for /A [id: 2] + [Enhancement]: public open fun foo(value: R|kotlin/String!|): R|kotlin/String!| from Java enhancement scope for /D [id: 0] + [Enhancement]: public open fun foo(value: R|kotlin/String!|): R|kotlin/String!| from Use site scope of /C [id: 0] + [Enhancement]: public open fun foo(value: R|kotlin/String!|): R|kotlin/String!| from Java enhancement scope for /B [id: 0] diff --git a/compiler/testData/diagnostics/tests/j+k/invisibleFake.fir.txt b/compiler/testData/diagnostics/tests/j+k/invisibleFake.fir.txt new file mode 100644 index 00000000000..5e05650d4d5 --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/invisibleFake.fir.txt @@ -0,0 +1,14 @@ +FILE: box.kt + private open class C : R|B| { + public constructor(): R|C| { + super() + } + + public open override fun foo(d: R|kotlin/Any?|): R|kotlin/String| { + ^foo String(C) + } + + } + public final fun box(): R|kotlin/String| { + ^box R|/D.D|().R|/B.foo|(String(s)) + } diff --git a/compiler/testData/diagnostics/tests/j+k/invisibleFake.kt b/compiler/testData/diagnostics/tests/j+k/invisibleFake.kt new file mode 100644 index 00000000000..9bae46efa11 --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/invisibleFake.kt @@ -0,0 +1,31 @@ +// FIR_IDENTICAL +// ISSUE: KT-63242, KT-66324 +// SCOPE_DUMP: D:foo +// FIR_DUMP + +// FILE: box.kt + +private open class C : B() { + override fun foo(d: Any?): String = "C" +} + +fun box(): String = + D().foo("s") // K1: D.foo, K2: B.foo + +// FILE: A.java +interface A { + String foo(Object value); +} + +abstract class B implements A { + public String foo(String value) { + return "B"; + } +} + +class D extends C { + @Override + public String foo(Object value) { + return "D"; + } +} diff --git a/compiler/testData/diagnostics/tests/j+k/invisibleFake.overrides.txt b/compiler/testData/diagnostics/tests/j+k/invisibleFake.overrides.txt new file mode 100644 index 00000000000..0aff23ba0fd --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/invisibleFake.overrides.txt @@ -0,0 +1,8 @@ +D: + [Enhancement]: public open fun foo(value: R|@EnhancedNullability kotlin/Any?|): R|@EnhancedNullability kotlin/String| from Java enhancement scope for /D [id: 0] + [Source]: public open override fun foo(d: R|kotlin/Any?|): R|kotlin/String| from Use site scope of /C [id: 1] + [Enhancement]: public abstract fun foo(value: R|kotlin/Any!|): R|kotlin/String!| from Java enhancement scope for /B [id: 2] + [Enhancement]: public abstract fun foo(value: R|kotlin/Any!|): R|kotlin/String!| from Java enhancement scope for /A [id: 2] + [Enhancement]: public open fun foo(value: R|kotlin/String!|): R|kotlin/String!| from Java enhancement scope for /D [id: 0] + [Enhancement]: public open fun foo(value: R|kotlin/String!|): R|kotlin/String!| from Use site scope of /C [id: 0] + [Enhancement]: public open fun foo(value: R|kotlin/String!|): R|kotlin/String!| from Java enhancement scope for /B [id: 0] diff --git a/compiler/testData/diagnostics/tests/j+k/invisibleFake2.fir.kt b/compiler/testData/diagnostics/tests/j+k/invisibleFake2.fir.kt new file mode 100644 index 00000000000..70a197dc3cd --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/invisibleFake2.fir.kt @@ -0,0 +1,26 @@ +// ISSUE: KT-63242, KT-66324 +// SCOPE_DUMP: D:foo +// FIR_DUMP + +// FILE: box.kt + +private open class C : B() { + override fun foo(d: Any?): String = "C" +} + +fun box(): String = + D().foo("s") + +// FILE: A.java +interface A { + String foo(Object value); +} + +abstract class B implements A { + public String foo(String value) { + return "B"; + } +} + +class D extends C { +} diff --git a/compiler/testData/diagnostics/tests/j+k/invisibleFake2.fir.overrides.txt b/compiler/testData/diagnostics/tests/j+k/invisibleFake2.fir.overrides.txt new file mode 100644 index 00000000000..dc53a650989 --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/invisibleFake2.fir.overrides.txt @@ -0,0 +1,8 @@ +D: + [Source]: public open override fun foo(d: R|kotlin/Any?|): R|kotlin/String| from Java enhancement scope for /D [id: 0] + [Source]: public open override fun foo(d: R|kotlin/Any?|): R|kotlin/String| from Use site scope of /C [id: 0] + [Enhancement]: public abstract fun foo(value: R|kotlin/Any!|): R|kotlin/String!| from Java enhancement scope for /B [id: 1] + [Enhancement]: public abstract fun foo(value: R|kotlin/Any!|): R|kotlin/String!| from Java enhancement scope for /A [id: 1] + [Enhancement]: public open fun foo(value: R|kotlin/String!|): R|kotlin/String!| from Java enhancement scope for /D [id: 0] + [Enhancement]: public open fun foo(value: R|kotlin/String!|): R|kotlin/String!| from Use site scope of /C [id: 0] + [Enhancement]: public open fun foo(value: R|kotlin/String!|): R|kotlin/String!| from Java enhancement scope for /B [id: 0] diff --git a/compiler/testData/diagnostics/tests/j+k/invisibleFake2.fir.txt b/compiler/testData/diagnostics/tests/j+k/invisibleFake2.fir.txt new file mode 100644 index 00000000000..5e05650d4d5 --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/invisibleFake2.fir.txt @@ -0,0 +1,14 @@ +FILE: box.kt + private open class C : R|B| { + public constructor(): R|C| { + super() + } + + public open override fun foo(d: R|kotlin/Any?|): R|kotlin/String| { + ^foo String(C) + } + + } + public final fun box(): R|kotlin/String| { + ^box R|/D.D|().R|/B.foo|(String(s)) + } diff --git a/compiler/testData/diagnostics/tests/j+k/invisibleFake2.kt b/compiler/testData/diagnostics/tests/j+k/invisibleFake2.kt new file mode 100644 index 00000000000..7f547e93063 --- /dev/null +++ b/compiler/testData/diagnostics/tests/j+k/invisibleFake2.kt @@ -0,0 +1,26 @@ +// ISSUE: KT-63242, KT-66324 +// SCOPE_DUMP: D:foo +// FIR_DUMP + +// FILE: box.kt + +private open class C : B() { + override fun foo(d: Any?): String = "C" +} + +fun box(): String = + D().foo("s") + +// FILE: A.java +interface A { + String foo(Object value); +} + +abstract class B implements A { + public String foo(String value) { + return "B"; + } +} + +class D extends C { +} diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java index 6396b5c1b54..db2a3e3600f 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/DiagnosticTestGenerated.java @@ -22276,6 +22276,18 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest { runTest("compiler/testData/diagnostics/tests/j+k/intersectionWithJavaVoidNothing.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/diagnostics/tests/j+k/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/diagnostics/tests/j+k/invisibleFake2.kt"); + } + @Test @TestMetadata("invisiblePackagePrivateInheritedMember.kt") public void testInvisiblePackagePrivateInheritedMember() { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java index cda0a97f964..de5f305430d 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/JvmAbiConsistencyTestBoxGenerated.java @@ -33307,6 +33307,18 @@ public class JvmAbiConsistencyTestBoxGenerated extends AbstractJvmAbiConsistency runTest("compiler/testData/codegen/box/javaInterop/inheritanceWithWildcard.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake2.kt"); + } + @Test @TestMetadata("javaForKotlinOverrideProperty.kt") public void testJavaForKotlinOverrideProperty() { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java index 7ed07589daa..1961260c955 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenTestGenerated.java @@ -33307,6 +33307,18 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes runTest("compiler/testData/codegen/box/javaInterop/inheritanceWithWildcard.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake2.kt"); + } + @Test @TestMetadata("javaForKotlinOverrideProperty.kt") public void testJavaForKotlinOverrideProperty() { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java index 3ab3945b41f..a0cc63ab752 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/IrBlackBoxCodegenWithIrInlinerTestGenerated.java @@ -33307,6 +33307,18 @@ public class IrBlackBoxCodegenWithIrInlinerTestGenerated extends AbstractIrBlack runTest("compiler/testData/codegen/box/javaInterop/inheritanceWithWildcard.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake2.kt"); + } + @Test @TestMetadata("javaForKotlinOverrideProperty.kt") public void testJavaForKotlinOverrideProperty() { diff --git a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/inlineScopes/FirBlackBoxCodegenTestWithInlineScopesGenerated.java b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/inlineScopes/FirBlackBoxCodegenTestWithInlineScopesGenerated.java index 2101ea7bad6..e372c316ade 100644 --- a/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/inlineScopes/FirBlackBoxCodegenTestWithInlineScopesGenerated.java +++ b/compiler/tests-common-new/tests-gen/org/jetbrains/kotlin/test/runners/codegen/inlineScopes/FirBlackBoxCodegenTestWithInlineScopesGenerated.java @@ -33307,6 +33307,18 @@ public class FirBlackBoxCodegenTestWithInlineScopesGenerated extends AbstractFir runTest("compiler/testData/codegen/box/javaInterop/inheritanceWithWildcard.kt"); } + @Test + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake.kt"); + } + + @Test + @TestMetadata("invisibleFake2.kt") + public void testInvisibleFake2() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake2.kt"); + } + @Test @TestMetadata("javaForKotlinOverrideProperty.kt") public void testJavaForKotlinOverrideProperty() { diff --git a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java index 6ac0bf048fa..9a7a4d3605f 100644 --- a/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java +++ b/compiler/tests-gen/org/jetbrains/kotlin/codegen/LightAnalysisModeTestGenerated.java @@ -28176,6 +28176,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class) public static class JavaInterop extends AbstractLightAnalysisModeTest { + @TestMetadata("invisibleFake2.kt") + public void ignoreInvisibleFake2() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake2.kt"); + } + private void runTest(String testDataFilePath) { KotlinTestUtils.runTest(this::doTest, TargetBackend.JVM_IR, testDataFilePath); } @@ -28229,6 +28234,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes runTest("compiler/testData/codegen/box/javaInterop/inheritanceWithWildcard.kt"); } + @TestMetadata("invisibleFake.kt") + public void testInvisibleFake() { + runTest("compiler/testData/codegen/box/javaInterop/invisibleFake.kt"); + } + @TestMetadata("javaForKotlinOverrideProperty.kt") public void testJavaForKotlinOverrideProperty() { runTest("compiler/testData/codegen/box/javaInterop/javaForKotlinOverrideProperty.kt");