Lift assignment out: do not report when assignment variables are different

#KT-38649 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-04-30 13:38:30 +09:00
committed by Yan Zhulanow
parent 498c40548b
commit 5efbbdea57
3 changed files with 27 additions and 1 deletions
@@ -5707,6 +5707,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/liftOut/whenToAssignment/cascadeWhen.kt");
}
@TestMetadata("differentVariablesWithSame.kt")
public void testDifferentVariablesWithSame() throws Exception {
runTest("idea/testData/inspectionsLocal/liftOut/whenToAssignment/differentVariablesWithSame.kt");
}
@TestMetadata("innerWhenTransformed.kt")
public void testInnerWhenTransformed() throws Exception {
runTest("idea/testData/inspectionsLocal/liftOut/whenToAssignment/innerWhenTransformed.kt");