c7435ba760
We are going to deprecate `WITH_RUNTIME` directive. The main reason behind this change is that `WITH_STDLIB` directive better describes its meaning, specifically it will add kotlin stdlib to test's classpath.
41 lines
829 B
Kotlin
Vendored
41 lines
829 B
Kotlin
Vendored
// !JVM_DEFAULT_MODE: enable
|
|
// JVM_TARGET: 1.8
|
|
// WITH_STDLIB
|
|
|
|
interface Test {
|
|
@JvmDefault
|
|
fun test(): String {
|
|
return "OK"
|
|
}
|
|
|
|
fun testAbstract(): String
|
|
|
|
fun testDefaultImpl() {
|
|
|
|
}
|
|
}
|
|
|
|
// TESTED_OBJECT_KIND: function
|
|
// TESTED_OBJECTS: Test, test
|
|
// FLAGS: ACC_PUBLIC
|
|
|
|
// TESTED_OBJECT_KIND: function
|
|
// TESTED_OBJECTS: Test, testAbstract
|
|
// FLAGS: ACC_PUBLIC, ACC_ABSTRACT
|
|
|
|
// TESTED_OBJECT_KIND: function
|
|
// TESTED_OBJECTS: Test, testDefaultImpl
|
|
// FLAGS: ACC_PUBLIC, ACC_ABSTRACT
|
|
|
|
// TESTED_OBJECT_KIND: function
|
|
// TESTED_OBJECTS: Test$DefaultImpls, test
|
|
// ABSENT: TRUE
|
|
|
|
// TESTED_OBJECT_KIND: function
|
|
// TESTED_OBJECTS: Test$DefaultImpls, testAbstract
|
|
// ABSENT: TRUE
|
|
|
|
// TESTED_OBJECT_KIND: function
|
|
// TESTED_OBJECTS: Test$DefaultImpls, testDefaultImpl
|
|
// FLAGS: ACC_PUBLIC, ACC_STATIC
|