Allow to move suspend lambda out of parentheses

#KT-26674 Fixed
#KT-26676 Fixed
This commit is contained in:
Mikhail Glukhikh
2018-09-13 12:21:14 +03:00
parent 3a5de13dd4
commit 76d1d6ff12
7 changed files with 49 additions and 3 deletions
@@ -3387,6 +3387,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
public void testNoTwoConsequentLambdas() throws Exception {
runTest("idea/testData/inspectionsLocal/moveLambdaOutsideParentheses/noTwoConsequentLambdas.kt");
}
@TestMetadata("suspendLambda.kt")
public void testSuspendLambda() throws Exception {
runTest("idea/testData/inspectionsLocal/moveLambdaOutsideParentheses/suspendLambda.kt");
}
}
@TestMetadata("idea/testData/inspectionsLocal/moveSuspiciousCallableReferenceIntoParentheses")
@@ -5323,6 +5323,11 @@ public class QuickFixTestGenerated extends AbstractQuickFixTest {
runTest("idea/testData/quickfix/deprecatedSymbolUsage/stringTemplate.kt");
}
@TestMetadata("suspendLambda.kt")
public void testSuspendLambda() throws Exception {
runTest("idea/testData/quickfix/deprecatedSymbolUsage/suspendLambda.kt");
}
@TestMetadata("toOuterClassMethod.kt")
public void testToOuterClassMethod() throws Exception {
runTest("idea/testData/quickfix/deprecatedSymbolUsage/toOuterClassMethod.kt");