Redundant nullable return type: fix false positive with elvis return

#KT-41878 Fixed
This commit is contained in:
Toshiaki Kameyama
2020-09-14 23:06:17 +02:00
committed by Vladimir Dolzhenko
parent 51d405e950
commit 0e4bd70c29
4 changed files with 42 additions and 6 deletions
@@ -8269,6 +8269,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/redundantNullableReturnType/function/returnNullableFromLambdaInSingleExpressionBody.kt");
}
@TestMetadata("returnNullableInElvis.kt")
public void testReturnNullableInElvis() throws Exception {
runTest("idea/testData/inspectionsLocal/redundantNullableReturnType/function/returnNullableInElvis.kt");
}
@TestMetadata("singleExpressionBody.kt")
public void testSingleExpressionBody() throws Exception {
runTest("idea/testData/inspectionsLocal/redundantNullableReturnType/function/singleExpressionBody.kt");
@@ -8312,6 +8317,11 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/redundantNullableReturnType/property/returnNullableFromLambdaInGetter.kt");
}
@TestMetadata("returnNullableInElvis.kt")
public void testReturnNullableInElvis() throws Exception {
runTest("idea/testData/inspectionsLocal/redundantNullableReturnType/property/returnNullableInElvis.kt");
}
@TestMetadata("var.kt")
public void testVar() throws Exception {
runTest("idea/testData/inspectionsLocal/redundantNullableReturnType/property/var.kt");