7541732752
Ensure the test data contents for both the frontends are identical. This is needed for proper analysis of K2-differences.
25 lines
730 B
Kotlin
Vendored
25 lines
730 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_EXPRESSION -UNUSED_PARAMETER -UNUSED_VARIABLE -UNUSED_VALUE -VARIABLE_WITH_REDUNDANT_INITIALIZER
|
|
// SKIP_TXT
|
|
|
|
/*
|
|
* KOTLIN DIAGNOSTICS NOT LINKED SPEC TEST (POSITIVE)
|
|
*
|
|
* SECTIONS: dfa
|
|
* NUMBER: 60
|
|
* DESCRIPTION: Raw data flow analysis test
|
|
* HELPERS: classes, objects, typealiases, functions, enumClasses, interfaces, sealedClasses
|
|
*/
|
|
|
|
// TESTCASE NUMBER: 1
|
|
fun case_1() {
|
|
var x: String? = null
|
|
|
|
outer@ while (x != null) {
|
|
inner@ do {
|
|
x = null
|
|
} while (<!SENSELESS_COMPARISON!>x == null<!>)
|
|
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String? & kotlin.Nothing")!>x<!>
|
|
<!DEBUG_INFO_EXPRESSION_TYPE("kotlin.String? & kotlin.Nothing")!>x<!>.length
|
|
}
|
|
}
|