Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/openInSealed.fir.kt
T
2021-01-29 16:55:26 +03:00

8 lines
181 B
Kotlin
Vendored

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