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.
12 lines
298 B
Kotlin
Vendored
12 lines
298 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
|
|
// COMPILER_ARGUMENTS: -XXLanguage:-NewInference
|
|
|
|
fun baz(s: String?): Int {
|
|
if (s == null) return 0
|
|
return when(<info descr="Smart cast to kotlin.String">s</info>) {
|
|
"abc" -> <info descr="Smart cast to kotlin.String">s</info>
|
|
else -> "xyz"
|
|
}.length
|
|
}
|