Move to constructor: choose property use-site target more precisely

#KT-26015 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-08-30 12:17:04 +03:00
committed by Mikhail Glukhikh
parent 29390dab42
commit de6fdc5733
15 changed files with 94 additions and 20 deletions
@@ -11825,6 +11825,11 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("idea/testData/intentions/movePropertyToConstructor"), Pattern.compile("^([\\w\\-_]+)\\.(kt|kts)$"), TargetBackend.ANY, true);
}
@TestMetadata("annotationTarget.kt")
public void testAnnotationTarget() throws Exception {
runTest("idea/testData/intentions/movePropertyToConstructor/annotationTarget.kt");
}
@TestMetadata("annotationWithUseSite.kt")
public void testAnnotationWithUseSite() throws Exception {
runTest("idea/testData/intentions/movePropertyToConstructor/annotationWithUseSite.kt");
@@ -11850,6 +11855,11 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
runTest("idea/testData/intentions/movePropertyToConstructor/getter.kt");
}
@TestMetadata("javaAnnotation.kt")
public void testJavaAnnotation() throws Exception {
runTest("idea/testData/intentions/movePropertyToConstructor/javaAnnotation.kt");
}
@TestMetadata("lambda.kt")
public void testLambda() throws Exception {
runTest("idea/testData/intentions/movePropertyToConstructor/lambda.kt");