Anonymous function to lambda: add lambda parameter if type parameter is used, even if parameter is unused

#KT-39393 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-06-05 10:47:42 +09:00
committed by igoriakovlev
parent 311b2d7969
commit e4a1c8dcef
8 changed files with 70 additions and 9 deletions
@@ -2115,6 +2115,21 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
public void testTypeParameter3() throws Exception {
runTest("idea/testData/intentions/anonymousFunctionToLambda/typeParameter3.kt");
}
@TestMetadata("typeParameterWithUnusedParameter.kt")
public void testTypeParameterWithUnusedParameter() throws Exception {
runTest("idea/testData/intentions/anonymousFunctionToLambda/typeParameterWithUnusedParameter.kt");
}
@TestMetadata("typeParameterWithUnusedParameter2.kt")
public void testTypeParameterWithUnusedParameter2() throws Exception {
runTest("idea/testData/intentions/anonymousFunctionToLambda/typeParameterWithUnusedParameter2.kt");
}
@TestMetadata("typeParameterWithVararg.kt")
public void testTypeParameterWithVararg() throws Exception {
runTest("idea/testData/intentions/anonymousFunctionToLambda/typeParameterWithVararg.kt");
}
}
@TestMetadata("idea/testData/intentions/branched")