if-then to safe access: fix for qualified 'this' condition #KT-26662 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-09-10 14:15:08 +09:00
committed by Mikhail Glukhikh
parent b5f73ebd0f
commit 3f2c73b4a9
6 changed files with 45 additions and 1 deletions
@@ -166,6 +166,16 @@ public class LocalInspectionTestGenerated extends AbstractLocalInspectionTest {
runTest("idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/implicitReceiver.kt");
}
@TestMetadata("implicitReceiver2.kt")
public void testImplicitReceiver2() throws Exception {
runTest("idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/implicitReceiver2.kt");
}
@TestMetadata("implicitReceiver3.kt")
public void testImplicitReceiver3() throws Exception {
runTest("idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/implicitReceiver3.kt");
}
@TestMetadata("implicitReceiverInApply.kt")
public void testImplicitReceiverInApply() throws Exception {
runTest("idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/implicitReceiverInApply.kt");