f38c0cf348
Similarly to FIR diagnostic tests. This commit enable all available test data and check the reported error messages by FIR. This helps identify some issues in formatting of FIR diagnostics. The changes on the test file are mechanically generated. Failed tests are disabled with `// IGNORE_FIR` and are re-enabled in the second commit.
9 lines
585 B
Kotlin
Vendored
9 lines
585 B
Kotlin
Vendored
fun call() {
|
|
val list : String? = "sdfknsdkfm"
|
|
"x" <error descr="[UNSAFE_OPERATOR_CALL] Operator call corresponds to a dot-qualified call 'R|<local>/list|.contains(String(x))' which is not allowed on a nullable receiver 'R|<local>/list|'. ">in</error> list
|
|
|
|
"x" <error descr="[UNSAFE_OPERATOR_CALL] Operator call corresponds to a dot-qualified call 'R|<local>/list|.contains(String(x))' which is not allowed on a nullable receiver 'R|<local>/list|'. ">!in</error> list
|
|
}
|
|
|
|
operator fun CharSequence.contains(other: CharSequence, ignoreCase: Boolean = false): Boolean = true
|