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.
17 lines
312 B
Kotlin
Vendored
17 lines
312 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
|
|
// See KT-15901
|
|
|
|
<info>enum</info> class En { A }
|
|
|
|
fun foo(): Any {
|
|
val en2: Any? = En.A
|
|
if (en2 is En) {
|
|
// Here we had smart casts to En / Any
|
|
// should be always En
|
|
val a: Any = <info descr="Smart cast to En">en2</info>
|
|
return a
|
|
}
|
|
return ""
|
|
}
|