Files
kotlin-fork/idea/testData/resolve/additionalLazyResolve/localObjectInClosureInClassParameterInitializer.kt
T
Valentin Kipyatkov 4cd7193047 KT-11018 Ctrl + Mouse Hover shows a var as val
#KT-11018 Fixed
2016-02-13 10:20:20 +03:00

22 lines
550 B
Kotlin
Vendored

package test
open class A
class MyClass(
a: A = run {
object O: A() {
}
O
}
)
//package test
//public open class A defined in test
//public constructor A() defined in test.A
//public final class MyClass defined in test
//public constructor MyClass(a: test.A = ...) defined in test.MyClass
//value-parameter a: test.A = ... defined in test.MyClass.<init>
//local object O : test.A defined in test.MyClass.<init>.<anonymous>
//private constructor O() defined in test.MyClass.<init>.<anonymous>.O