Psi2Ir: Mark accessors with no bodies as default accessors.
They are currently marked as defined even when they get a default implementation. That makes it hard to figure out if the accessor should be removed when introducing a backing field in the JVM_IR backend.
This commit is contained in:
committed by
Alexander Udalov
parent
fda37eaaae
commit
6c7a904663
+5
@@ -166,6 +166,11 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/annotations"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsTargetingLateinitAccessors.kt")
|
||||
public void testAnnotationsTargetingLateinitAccessors() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/annotationsTargetingLateinitAccessors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsTargetingNonExistentAccessor.kt")
|
||||
public void testAnnotationsTargetingNonExistentAccessor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/annotationsTargetingNonExistentAccessor.kt");
|
||||
|
||||
compiler/tests/org/jetbrains/kotlin/checkers/javac/DiagnosticsTestWithStdLibUsingJavacGenerated.java
Generated
+5
@@ -166,6 +166,11 @@ public class DiagnosticsTestWithStdLibUsingJavacGenerated extends AbstractDiagno
|
||||
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/annotations"), Pattern.compile("^(.+)\\.kt$"), TargetBackend.ANY, true);
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsTargetingLateinitAccessors.kt")
|
||||
public void testAnnotationsTargetingLateinitAccessors() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/annotationsTargetingLateinitAccessors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsTargetingNonExistentAccessor.kt")
|
||||
public void testAnnotationsTargetingNonExistentAccessor() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/testsWithStdLib/annotations/annotationsTargetingNonExistentAccessor.kt");
|
||||
|
||||
+5
@@ -71,6 +71,11 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotationsOnDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsOnLateinitAccessors.kt")
|
||||
public void testAnnotationsOnLateinitAccessors() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotationsOnLateinitAccessors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsOnNonExistentAccessors.kt")
|
||||
public void testAnnotationsOnNonExistentAccessors() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.kt");
|
||||
|
||||
+5
@@ -76,6 +76,11 @@ public class LightAnalysisModeTestGenerated extends AbstractLightAnalysisModeTes
|
||||
runTest("compiler/testData/codegen/box/annotations/annotationsOnDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsOnLateinitAccessors.kt")
|
||||
public void testAnnotationsOnLateinitAccessors() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotationsOnLateinitAccessors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsOnNonExistentAccessors.kt")
|
||||
public void testAnnotationsOnNonExistentAccessors() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.kt");
|
||||
|
||||
+5
@@ -71,6 +71,11 @@ public class IrBlackBoxCodegenTestGenerated extends AbstractIrBlackBoxCodegenTes
|
||||
runTest("compiler/testData/codegen/box/annotations/annotationsOnDefault.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsOnLateinitAccessors.kt")
|
||||
public void testAnnotationsOnLateinitAccessors() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotationsOnLateinitAccessors.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("annotationsOnNonExistentAccessors.kt")
|
||||
public void testAnnotationsOnNonExistentAccessors() throws Exception {
|
||||
runTest("compiler/testData/codegen/box/annotations/annotationsOnNonExistentAccessors.kt");
|
||||
|
||||
Reference in New Issue
Block a user