"Convert anonymous function to lambda expression" intention: add necessary lambda type parameter

#KT-37748 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-04-03 17:37:38 +09:00
committed by igoriakovlev
parent d27c7ce86f
commit 46ab338ea6
9 changed files with 83 additions and 1 deletions
@@ -2100,6 +2100,21 @@ public class IntentionTestGenerated extends AbstractIntentionTest {
public void testSimple() throws Exception {
runTest("idea/testData/intentions/anonymousFunctionToLambda/simple.kt");
}
@TestMetadata("typeParameter.kt")
public void testTypeParameter() throws Exception {
runTest("idea/testData/intentions/anonymousFunctionToLambda/typeParameter.kt");
}
@TestMetadata("typeParameter2.kt")
public void testTypeParameter2() throws Exception {
runTest("idea/testData/intentions/anonymousFunctionToLambda/typeParameter2.kt");
}
@TestMetadata("typeParameter3.kt")
public void testTypeParameter3() throws Exception {
runTest("idea/testData/intentions/anonymousFunctionToLambda/typeParameter3.kt");
}
}
@TestMetadata("idea/testData/intentions/branched")