Files
kotlin-fork/compiler/testData/ir/interpreter/overrideDifferentName.kt
T
2021-06-07 15:35:12 +03:00

15 lines
291 B
Kotlin
Vendored

@CompileTimeCalculation
open class A {
open fun inc(i: Int) = i + 1
}
@CompileTimeCalculation
class B(val b: Int) : A() {
override fun inc(j: Int): Int {
return j + b
}
}
const val a = A().<!EVALUATED: `11`!>inc(10)<!>
const val b = B(10).<!EVALUATED: `21`!>inc(11)<!>