K1: add deprecation warning for property/field pair with different types
#KT-57905 Fixed
This commit is contained in:
committed by
Space Team
parent
2100f08655
commit
41e551e321
+12
@@ -11838,6 +11838,18 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/derivedClassPropertyShadowsBaseClassField13.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyDifferentType.kt")
|
||||
public void testJavaFieldKotlinPropertyDifferentType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaFieldKotlinPropertyDifferentType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyDifferentType2.kt")
|
||||
public void testJavaFieldKotlinPropertyDifferentType2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaFieldKotlinPropertyDifferentType2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaFieldInPackagePrivate() throws Exception {
|
||||
|
||||
+12
@@ -11838,6 +11838,18 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/derivedClassPropertyShadowsBaseClassField13.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyDifferentType.kt")
|
||||
public void testJavaFieldKotlinPropertyDifferentType() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaFieldKotlinPropertyDifferentType.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyDifferentType2.kt")
|
||||
public void testJavaFieldKotlinPropertyDifferentType2() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/fieldRename/javaFieldKotlinPropertyDifferentType2.kt");
|
||||
}
|
||||
|
||||
@Test
|
||||
@TestMetadata("javaFieldKotlinPropertyJavaFieldInPackagePrivate.kt")
|
||||
public void testJavaFieldKotlinPropertyJavaFieldInPackagePrivate() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user