Files
kotlin-fork/compiler/testData/codegen/box/sameFileInSourceAndDependencies/memberFunctionDeclaration.kt
T
Igor Chevdar a1e5bef3ad [box-tests] Ignored some tests for K/N
A file included twice in a source set is not supported for now
2021-06-16 14:27:14 +05:00

29 lines
387 B
Kotlin
Vendored

// IGNORE_BACKEND: NATIVE
// MODULE: lib
// FILE: 2.kt
abstract class A {
protected val value = "OK"
}
abstract class B : A() {
fun f() = value
}
// FILE: 3.kt
abstract class C : B()
// MODULE: main(lib)
// FILE: 1.kt
class D : C()
fun box(): String = D().f()
// FILE: 2.kt
abstract class A {
protected val value = "OK"
}
abstract class B : A() {
fun f() = value
}