Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/delegates/delegateWithLambda.txt
T
2020-04-03 13:29:55 +03:00

44 lines
1.5 KiB
Plaintext
Vendored

FILE: delegateWithLambda.kt
public final class LazyDelegate<T> : R|kotlin/Any| {
public constructor<T>(value: R|T|): R|LazyDelegate<T>| {
super<R|kotlin/Any|>()
}
public final val value: R|T| = R|<local>/value|
public get(): R|T|
public final operator fun getValue(thisRef: R|kotlin/Any?|, property: R|kotlin/reflect/KProperty<*>|): R|T| {
^getValue this@R|/LazyDelegate|.R|/LazyDelegate.value|
}
}
public final fun <T> lazy(block: R|() -> T|): R|LazyDelegate<T>| {
^lazy R|/LazyDelegate.LazyDelegate|<R|T|>(R|<local>/block|.R|FakeOverride<kotlin/Function0.invoke: R|T|>|())
}
public final fun getAny(): R|kotlin/Any?| {
^getAny Null(null)
}
public final class Test : R|kotlin/Any| {
public constructor(): R|Test| {
super<R|kotlin/Any|>()
}
public final val x: R|kotlin/String|by R|/lazy|<R|kotlin/String|>(<L> = lazy@fun <anonymous>(): R|kotlin/String| {
lval y: R|kotlin/String| = when (lval <elvis>: R|kotlin/String?| = (R|/getAny|() as? R|kotlin/String|)) {
==($subj$, Null(null)) -> {
String()
}
else -> {
R|<local>/<elvis>|
}
}
^ R|<local>/y|
}
)
public get(): R|kotlin/String| {
^ this@R|/Test|.D|/Test.x|.R|FakeOverride</LazyDelegate.getValue: R|kotlin/String|>|(this@R|/Test|, ::R|/Test.x|)
}
}