KT-15846 'Change lambda expression return type' quick fix does nothing (#3182)

* Change parameter type quickfix: fix it works correctly on property delegate

#KT-15846 Fixed

* Change parameter type quickfix: fix it works correctly when function literal has trailing comments

#KT-15846 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-06-11 18:07:44 +09:00
committed by GitHub
parent 5ab05e6e47
commit 957a927790
7 changed files with 74 additions and 2 deletions
@@ -14331,6 +14331,11 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
runTest("idea/testData/quickfix/typeMismatch/parameterTypeMismatch/changeFunctionParameterType4.kt");
}
@TestMetadata("changeFunctionParameterTypeWithComment.kt")
public void testChangeFunctionParameterTypeWithComment() throws Exception {
runTest("idea/testData/quickfix/typeMismatch/parameterTypeMismatch/changeFunctionParameterTypeWithComment.kt");
}
@TestMetadata("changeParameterTypeLongNameRuntime.kt")
public void testChangeParameterTypeLongNameRuntime() throws Exception {
runTest("idea/testData/quickfix/typeMismatch/parameterTypeMismatch/changeParameterTypeLongNameRuntime.kt");
@@ -14341,6 +14346,11 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
runTest("idea/testData/quickfix/typeMismatch/parameterTypeMismatch/changePrimaryConstructorParameterType.kt");
}
@TestMetadata("changePrimaryConstructorParameterTypeOnPropertyDelegate.kt")
public void testChangePrimaryConstructorParameterTypeOnPropertyDelegate() throws Exception {
runTest("idea/testData/quickfix/typeMismatch/parameterTypeMismatch/changePrimaryConstructorParameterTypeOnPropertyDelegate.kt");
}
@TestMetadata("multiFakeOverride.kt")
public void testMultiFakeOverride() throws Exception {
runTest("idea/testData/quickfix/typeMismatch/parameterTypeMismatch/multiFakeOverride.kt");