blob: c05d026552cf7dced40493bd7d727428c443ae7b [file] [log] [blame]
@CompileTimeCalculation
open class A {
open fun get(): Int { return 1 }
}
@CompileTimeCalculation
interface B {
fun get(): Int = 2
}
@CompileTimeCalculation
interface C {
fun get(): Int = 3
}
@CompileTimeCalculation
class D : A(), B, C {
override fun get(): Int {
return super<C>.get() + super<B>.get() + super<A>.get()
}
}
const val a = <!EVALUATED: `6`!>D().get()<!>