[K/JS] Fix private constructor delegating inside single class with ES6 mode ^KT-59335 Fixed
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1344
|
||||
open class MyClass1 private constructor(val value: String) {
|
||||
constructor(i: Int): this(i.toString())
|
||||
}
|
||||
|
||||
class MyClass2 : MyClass1 {
|
||||
constructor(i: Int): super(i)
|
||||
}
|
||||
|
||||
fun test(x: Any) = x is MyClass2
|
||||
|
||||
fun box(): String {
|
||||
val b = test(MyClass2(0))
|
||||
|
||||
return if (b) "OK" else "NOT OK"
|
||||
}
|
||||
Reference in New Issue
Block a user