Files
kotlin-fork/compiler/testData/diagnostics/tests/smartCasts/openInSealed.kt
T
2019-02-14 12:31:42 +03:00

8 lines
245 B
Kotlin
Vendored

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