diff --git a/idea/testData/inspectionsLocal/branched/ifThenToElvis/inspectionData/expected.xml b/idea/testData/inspectionsLocal/branched/ifThenToElvis/inspectionData/expected.xml index 7e1777b5a4b..05c2cf50d3d 100644 --- a/idea/testData/inspectionsLocal/branched/ifThenToElvis/inspectionData/expected.xml +++ b/idea/testData/inspectionsLocal/branched/ifThenToElvis/inspectionData/expected.xml @@ -98,4 +98,13 @@ If-Then foldable to '?:' If-Then foldable to '?:' + + longLine.kt + 8 + light_idea_test_case + longLine + + If-Then foldable to '?:' + If-Then foldable to '?:' + diff --git a/idea/testData/inspectionsLocal/branched/ifThenToElvis/notApplicableForSimpleKotlinNPE.kt b/idea/testData/inspectionsLocal/branched/ifThenToElvis/notApplicableForSimpleKotlinNPE.kt index 7111348dcb6..b9c955d1a9b 100644 --- a/idea/testData/inspectionsLocal/branched/ifThenToElvis/notApplicableForSimpleKotlinNPE.kt +++ b/idea/testData/inspectionsLocal/branched/ifThenToElvis/notApplicableForSimpleKotlinNPE.kt @@ -1,5 +1,6 @@ // PROBLEM: none // WITH_RUNTIME +// DISABLE-ERRORS fun main(args: Array) { val t: String? = "abc" if (t != null) t else throw KotlinNullPointerException() diff --git a/idea/testData/inspectionsLocal/branched/ifThenToElvis/notApplicableForSimpleNPE.kt b/idea/testData/inspectionsLocal/branched/ifThenToElvis/notApplicableForSimpleNPE.kt index 1b4dd4e556d..47bbfd8167f 100644 --- a/idea/testData/inspectionsLocal/branched/ifThenToElvis/notApplicableForSimpleNPE.kt +++ b/idea/testData/inspectionsLocal/branched/ifThenToElvis/notApplicableForSimpleNPE.kt @@ -1,5 +1,6 @@ // PROBLEM: none // WITH_RUNTIME +// DISABLE-ERRORS fun main(args: Array) { val t: String? = "abc" if (t == null) throw NullPointerException() else t diff --git a/idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/inspectionData/expected.xml b/idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/inspectionData/expected.xml index 44877cf2eed..991ac623f69 100644 --- a/idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/inspectionData/expected.xml +++ b/idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/inspectionData/expected.xml @@ -145,4 +145,22 @@ If-Then foldable to '?.' Foldable if-then + + resultCall.kt + 6 + light_idea_test_case + resultCall + + If-Then foldable to '?.' + Foldable if-then + + + noStdResultInCallChain.kt + 7 + light_idea_test_case + noStdResultInCallChain + + If-Then foldable to '?.' + Foldable if-then +