mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 08:31:30 +00:00
Match the rules from the old backend: 1. Private and inline only methods get package private default argument stubs. 2. Everything else is public.
19 lines
538 B
Kotlin
Vendored
19 lines
538 B
Kotlin
Vendored
open class MyClass() {
|
|
fun testPublic(s: String = "") {}
|
|
|
|
protected fun testProtected(s: String = "") {}
|
|
|
|
private fun testPrivate(s: String = "") {}
|
|
}
|
|
|
|
// TESTED_OBJECT_KIND: function
|
|
// TESTED_OBJECTS: MyClass, testPublic$default
|
|
// FLAGS: ACC_PUBLIC, ACC_STATIC, ACC_SYNTHETIC
|
|
|
|
// TESTED_OBJECT_KIND: function
|
|
// TESTED_OBJECTS: MyClass, testProtected$default
|
|
// FLAGS: ACC_PUBLIC, ACC_STATIC, ACC_SYNTHETIC
|
|
|
|
// TESTED_OBJECT_KIND: function
|
|
// TESTED_OBJECTS: MyClass, testPrivate$default
|
|
// FLAGS: ACC_STATIC, ACC_SYNTHETIC |