[K/JS] Remove super keyword insertion if the body of method was moved into another place (private methods, lambdas, coroutines) ^KT-57990 Fixed
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// EXPECTED_REACHABLE_NODES: 1292
|
||||
|
||||
var result = ""
|
||||
abstract class Parent {
|
||||
val o = "O"
|
||||
val k = "K"
|
||||
protected fun getO() = o
|
||||
protected fun getK() = k
|
||||
}
|
||||
|
||||
class Child : Parent() {
|
||||
private fun calculateResult(): String {
|
||||
return super.getO() + super.getK()
|
||||
}
|
||||
fun runTest() {
|
||||
result += this.calculateResult()
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
Child().runTest()
|
||||
return result
|
||||
}
|
||||
Reference in New Issue
Block a user