Files
kotlin-fork/compiler/testData/writeFlags/jvm8/defaults/privateAccessorNaming.kt
T
Kristoffer Andersen 18e8896c08 [JVM IR] Leave private @JvmDefault methods on interface
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.
2019-12-02 08:19:52 +01:00

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