22 lines
561 B
Kotlin
22 lines
561 B
Kotlin
package test
|
|
|
|
open class A
|
|
|
|
class MyClass(
|
|
a: A = run {
|
|
object O: A() {
|
|
|
|
}
|
|
|
|
O
|
|
}
|
|
)
|
|
|
|
//package test
|
|
//internal open class A defined in test
|
|
//public constructor A() defined in test.A
|
|
//internal final class MyClass defined in test
|
|
//public constructor MyClass(a: test.A = ...) defined in test.MyClass
|
|
//value-parameter val a: test.A = ... defined in test.MyClass.<init>
|
|
//internal object O : test.A defined in test.MyClass.<init>.<anonymous>
|
|
//private constructor O() defined in test.MyClass.<init>.<anonymous>.O |