Add Parameter Fix: Support smart casts

#KT-24207 Fixed
This commit is contained in:
Alexey Sedunov
2018-05-10 17:49:52 +03:00
parent a4a10c7ba4
commit a92a4a2a6d
5 changed files with 50 additions and 11 deletions
@@ -1509,6 +1509,11 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
runTest("idea/testData/quickfix/changeSignature/addFunctionParameterLongNameRuntime.kt");
}
@TestMetadata("addFunctionParameterWithSmartCast.kt")
public void testAddFunctionParameterWithSmartCast() throws Exception {
runTest("idea/testData/quickfix/changeSignature/addFunctionParameterWithSmartCast.kt");
}
@TestMetadata("addNothingReturnType.kt")
public void testAddNothingReturnType() throws Exception {
runTest("idea/testData/quickfix/changeSignature/addNothingReturnType.kt");
@@ -3086,8 +3091,7 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
@TestMetadata("nullableReceiver.kt")
public void testNullableReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createFunction/call/nullableReceiver.kt");
doTest(fileName);
runTest("idea/testData/quickfix/createFromUsage/createFunction/call/nullableReceiver.kt");
}
@TestMetadata("objectMemberFunNoReceiver.kt")
@@ -4607,8 +4611,7 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
@TestMetadata("nullableReceiver.kt")
public void testNullableReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/quickfix/createFromUsage/createVariable/property/nullableReceiver.kt");
doTest(fileName);
runTest("idea/testData/quickfix/createFromUsage/createVariable/property/nullableReceiver.kt");
}
@TestMetadata("objectMemberValNoReceiver.kt")