Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/openInSealed.fir.kt
T
2021-06-10 16:01:13 +03:00

8 lines
190 B
Kotlin
Vendored

sealed class My(open val x: Int?) {
init {
if (x != null) {
// Should be error: property is open
<!SMARTCAST_IMPOSSIBLE!>x<!>.hashCode()
}
}
}