Minor, add regression test for K1 issue KT-61101
This commit is contained in:
committed by
Space Team
parent
37b839f2c2
commit
e0b2f2040b
@@ -0,0 +1,13 @@
|
||||
// ISSUE: KT-61101
|
||||
|
||||
open class A {
|
||||
var x: Int = 0
|
||||
private set
|
||||
}
|
||||
|
||||
class B : A()
|
||||
|
||||
fun test() {
|
||||
val b = B()
|
||||
b.<!INVISIBLE_SETTER!>x<!> = throw Exception()
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
// ISSUE: KT-61101
|
||||
|
||||
open class A {
|
||||
var x: Int = 0
|
||||
private set
|
||||
}
|
||||
|
||||
class B : A()
|
||||
|
||||
fun test() {
|
||||
val b = B()
|
||||
b<!UNREACHABLE_CODE!>.x =<!> throw Exception()
|
||||
}
|
||||
Reference in New Issue
Block a user