Files
kotlin-fork/compiler/testData/diagnostics/testsWithStdLib/native/trait.kt
T

11 lines
308 B
Kotlin

import kotlin.jvm.*
trait Tr {
<!NATIVE_DECLARATION_IN_TRAIT!>native fun foo()<!>
<!NATIVE_DECLARATION_IN_TRAIT, NATIVE_DECLARATION_CANNOT_HAVE_BODY!>native fun bar()<!> {}
companion object {
native fun foo()
<!NATIVE_DECLARATION_CANNOT_HAVE_BODY!>native fun bar()<!> {}
}
}