18e8896c08
Like the old backend, always leave private @JvmDefault annotated interface members (properties, methods) on the interface, just like the old backend. Fix naming, and introduce test to document the naming scheme.
18 lines
324 B
Kotlin
Vendored
18 lines
324 B
Kotlin
Vendored
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// TARGET_BACKEND: JVM
|
|
// !JVM_DEFAULT_MODE: enable
|
|
// JVM_TARGET: 1.8
|
|
// WITH_RUNTIME
|
|
interface I {
|
|
|
|
@JvmDefault
|
|
private fun foo() = 4
|
|
|
|
fun bar() = { foo() + 5 }()
|
|
|
|
}
|
|
|
|
|
|
// TESTED_OBJECT_KIND: function
|
|
// TESTED_OBJECTS: I, access$foo
|
|
// FLAGS: ACC_PUBLIC, ACC_STATIC, ACC_SYNTHETIC |