Files
kotlin/compiler/testData/writeFlags/function/withDefaultArguments/funInClass.kt
Mads Ager 1b1dff9191 JVM_IR: fix default argument stub visibility.
Match the rules from the old backend:

1. Private and inline only methods get package private default
   argument stubs.

2. Everything else is public.
2020-01-08 13:19:14 +01:00

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