Files
kotlin-fork/backend.native/tests/codegen/function/defaults4.kt
T
2017-10-20 18:25:05 +03:00

17 lines
241 B
Kotlin

package codegen.function.defaults4
import kotlin.test.*
open class A {
open fun foo(x: Int = 42) = println(x)
}
open class B : A()
class C : B() {
override fun foo(x: Int) = println(x + 1)
}
@Test fun runTest() {
C().foo()
}