diff --git a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosisCompilerTestFE10TestdataTestGenerated.java b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosisCompilerTestFE10TestdataTestGenerated.java index 3d6fca40fd3..661ba671258 100644 --- a/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosisCompilerTestFE10TestdataTestGenerated.java +++ b/analysis/low-level-api-fir/tests/org/jetbrains/kotlin/analysis/low/level/api/fir/diagnostic/compiler/based/DiagnosisCompilerTestFE10TestdataTestGenerated.java @@ -339,6 +339,12 @@ public class DiagnosisCompilerTestFE10TestdataTestGenerated extends AbstractDiag runTest("compiler/testData/diagnostics/tests/IncDec.kt"); } + @Test + @TestMetadata("IncDecOperatorsInExpectClass.kt") + public void testIncDecOperatorsInExpectClass() throws Exception { + runTest("compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.kt"); + } + @Test @TestMetadata("IncorrectCharacterLiterals.kt") public void testIncorrectCharacterLiterals() throws Exception { diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsTestGenerated.java index 72bbff9b990..6378771b6f2 100644 --- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsTestGenerated.java +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsTestGenerated.java @@ -339,6 +339,12 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirDiagnosti runTest("compiler/testData/diagnostics/tests/IncDec.kt"); } + @Test + @TestMetadata("IncDecOperatorsInExpectClass.kt") + public void testIncDecOperatorsInExpectClass() throws Exception { + runTest("compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.kt"); + } + @Test @TestMetadata("IncorrectCharacterLiterals.kt") public void testIncorrectCharacterLiterals() throws Exception { diff --git a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsWithLightTreeTestGenerated.java b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsWithLightTreeTestGenerated.java index fb42c3f219f..57df8579832 100644 --- a/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsWithLightTreeTestGenerated.java +++ b/compiler/fir/analysis-tests/tests-gen/org/jetbrains/kotlin/test/runners/FirOldFrontendDiagnosticsWithLightTreeTestGenerated.java @@ -339,6 +339,12 @@ public class FirOldFrontendDiagnosticsWithLightTreeTestGenerated extends Abstrac runTest("compiler/testData/diagnostics/tests/IncDec.kt"); } + @Test + @TestMetadata("IncDecOperatorsInExpectClass.kt") + public void testIncDecOperatorsInExpectClass() throws Exception { + runTest("compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.kt"); + } + @Test @TestMetadata("IncorrectCharacterLiterals.kt") public void testIncorrectCharacterLiterals() throws Exception { diff --git a/compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.fir.kt b/compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.fir.kt new file mode 100644 index 00000000000..1c6091c9cfb --- /dev/null +++ b/compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.fir.kt @@ -0,0 +1,10 @@ +// !LANGUAGE: +MultiPlatformProjects +// SKIP_TXT +// Issue: KT-49714 + +expect class Counter { + operator fun inc(): Counter + operator fun dec(): Counter +} + +actual typealias Counter = Int diff --git a/compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.kt b/compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.kt new file mode 100644 index 00000000000..57314a99abb --- /dev/null +++ b/compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.kt @@ -0,0 +1,10 @@ +// !LANGUAGE: +MultiPlatformProjects +// SKIP_TXT +// Issue: KT-49714 + +expect class Counter { + operator fun inc(): Counter + operator fun dec(): Counter +} + +actual typealias Counter = Int 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 789bc123857..fe72feb4f56 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 @@ -339,6 +339,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest { runTest("compiler/testData/diagnostics/tests/IncDec.kt"); } + @Test + @TestMetadata("IncDecOperatorsInExpectClass.kt") + public void testIncDecOperatorsInExpectClass() throws Exception { + runTest("compiler/testData/diagnostics/tests/IncDecOperatorsInExpectClass.kt"); + } + @Test @TestMetadata("IncorrectCharacterLiterals.kt") public void testIncorrectCharacterLiterals() throws Exception {