Create From Usage: Do not fail on qualifier receiver when it doesn't have type

This commit is contained in:
Alexey Sedunov
2014-10-02 18:31:18 +04:00
parent b680b74ecb
commit ae7c5e1323
4 changed files with 35 additions and 3 deletions
@@ -760,6 +760,12 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
doTest(fileName);
}
@TestMetadata("beforeFunOnClassNoClassObject.kt")
public void testFunOnClassNoClassObject() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/beforeFunOnClassNoClassObject.kt");
doTest(fileName);
}
@TestMetadata("beforeFunOnClassObject.kt")
public void testFunOnClassObject() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/beforeFunOnClassObject.kt");
@@ -1541,6 +1547,12 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
doTest(fileName);
}
@TestMetadata("beforeValOnClassNoClassObject.kt")
public void testValOnClassNoClassObject() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/beforeValOnClassNoClassObject.kt");
doTest(fileName);
}
@TestMetadata("beforeValOnClassObject.kt")
public void testValOnClassObject() throws Exception {
String fileName = JetTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/beforeValOnClassObject.kt");