12 lines
278 B
Kotlin
Vendored
12 lines
278 B
Kotlin
Vendored
open class Base(val x: String) {
|
|
fun foo() = bar()
|
|
|
|
open fun bar() = -1
|
|
}
|
|
|
|
class Derived(x: String): Base(x) {
|
|
// It's still dangerous: we're not sure that foo() does not call some open function inside
|
|
val y = <!DEBUG_INFO_LEAKING_THIS!>foo<!>()
|
|
val z = x
|
|
}
|