Files
kotlin-fork/compiler/testData/codegen/box/classes/kt2480.kt
T
Mikhail Glukhikh 53ad502d2a [FIR2IR] Generate fake overrides earlier and bind them later
Before this commit, we generated fake overrides at last FIR2IR stage,
after having all functions and classes built. This could lead to a
situation when fake override was called before it was generated.
This commit fixes this situation.
2020-08-25 10:00:26 +03:00

14 lines
255 B
Kotlin
Vendored

fun box() = Class().printSome()
public abstract class AbstractClass<T> {
public fun printSome() : T = some
public abstract val some: T
}
public class Class: AbstractClass<String>() {
public override val some: String
get() = "OK"
}