"Redundant Unit" inspection: fix for Unit returned as Any

So #KT-24066 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-04-27 04:50:33 +03:00
committed by Mikhail Glukhikh
parent c44cab4565
commit 6e150d27f1
3 changed files with 27 additions and 15 deletions
@@ -3412,6 +3412,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
public void testRedundant5() throws Exception {
runTest("idea/testData/inspectionsLocal/redundantUnitExpression/redundant5.kt");
}
@TestMetadata("returnAsAny.kt")
public void testReturnAsAny() throws Exception {
runTest("idea/testData/inspectionsLocal/redundantUnitExpression/returnAsAny.kt");
}
}
@TestMetadata("idea/testData/inspectionsLocal/removeRedundantBackticks")