KT-12152 : constructor consistency: handle open property accessing
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
sealed class My(open val x: Int?) {
|
||||
init {
|
||||
if (x != null) {
|
||||
if (<!DEBUG_INFO_LEAKING_THIS!>x<!> != null) {
|
||||
// Should be error: property is open
|
||||
<!SMARTCAST_IMPOSSIBLE!>x<!>.hashCode()
|
||||
<!SMARTCAST_IMPOSSIBLE, DEBUG_INFO_LEAKING_THIS!>x<!>.hashCode()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user