Create from Usage: Fix generation of extensions with nullable receiver

#KT-23796 Fixed
This commit is contained in:
Alexey Sedunov
2018-04-17 15:42:09 +03:00
parent 4e3c1e9f56
commit a4a10c7ba4
7 changed files with 57 additions and 6 deletions
@@ -3084,6 +3084,12 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
runTest("idea/testData/quickfix/createFromUsage/createFunction/call/notExactArgument.kt");
}
@TestMetadata("nullableReceiver.kt")
public void testNullableReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/nullableReceiver.kt");
doTest(fileName);
}
@TestMetadata("objectMemberFunNoReceiver.kt")
public void testObjectMemberFunNoReceiver() throws Exception {
runTest("idea/testData/quickfix/createFromUsage/createFunction/call/objectMemberFunNoReceiver.kt");
@@ -4599,6 +4605,12 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
runTest("idea/testData/quickfix/createFromUsage/createVariable/property/nonAbstractInInterface.kt");
}
@TestMetadata("nullableReceiver.kt")
public void testNullableReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/nullableReceiver.kt");
doTest(fileName);
}
@TestMetadata("objectMemberValNoReceiver.kt")
public void testObjectMemberValNoReceiver() throws Exception {
runTest("idea/testData/quickfix/createFromUsage/createVariable/property/objectMemberValNoReceiver.kt");