// !DIAGNOSTICS: -UNUSED_EXPRESSION // SKIP_TXT /* * KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (NEGATIVE) * * SECTIONS: dfa * NUMBER: 8 * DESCRIPTION: Raw data flow analysis test * HELPERS: classes, objects, typealiases, enumClasses, interfaces, sealedClasses */ // TESTCASE NUMBER: 1 fun case_1(x: Class?) { if (x?.fun_4()?.fun_4()?.fun_4()?.fun_4() != null) { x x.fun_4() x.fun_4().fun_4() x.fun_4().fun_4().fun_4() x.fun_4().fun_4().fun_4().fun_4() } } // TESTCASE NUMBER: 2 fun case_2(x: Class?) { if (x?.fun_4()?.prop_8 != null) { x x.fun_4() x.fun_4().prop_8 } } // TESTCASE NUMBER: 3 fun case_3(x: Class?) { if (x?.prop_8?.fun_4() != null) { x x.prop_8 x.prop_8.fun_4().prop_8 } } // TESTCASE NUMBER: 4 fun case_4(x: Class?) { if (x?.prop_8.also { } != null) { x x.prop_8 x.prop_8.fun_4() } }