e6b5cb5216
Update includes:
- Changing syntax of `OI/`NI` tags from `<!NI;TAG!>` to `<!TAG{NI}!>`
- Fix some incorrect directives
- Change order of diagnostics in some places
- Remove ignored diagnostics from FIR test data (previously `DIAGNOSTICS` didn't work)
- Update FIR dumps in some places and add `FIR_IDENTICAL` if needed
- Replace all JAVAC_SKIP with SKIP_JAVAC directive
57 lines
2.9 KiB
Plaintext
Vendored
57 lines
2.9 KiB
Plaintext
Vendored
FILE: lambdaArgInScopeFunction.kt
|
|
public final class KotlinClass : R|kotlin/Comparable<KotlinClass>| {
|
|
public constructor(name: R|kotlin/String|): R|KotlinClass| {
|
|
super<R|kotlin/Any|>()
|
|
}
|
|
|
|
private final val name: R|kotlin/String| = R|<local>/name|
|
|
private get(): R|kotlin/String|
|
|
|
|
public final override operator fun compareTo(that: R|KotlinClass|): R|kotlin/Int| {
|
|
^compareTo this@R|/KotlinClass|.R|/KotlinClass.name|.R|kotlin/String.compareTo|(R|<local>/that|.R|/KotlinClass.name|)
|
|
}
|
|
|
|
}
|
|
public final fun case1(kotlinClass: R|KotlinClass?|): R|kotlin/Unit| {
|
|
lval value: R|KotlinClass?| = R|<local>/kotlinClass|?.{ $subj$.R|kotlin/let|<R|KotlinClass|, R|KotlinClass|>(<L> = let@fun <anonymous>(it: R|KotlinClass|): R|KotlinClass| <kind=EXACTLY_ONCE> {
|
|
^ R|<local>/it|
|
|
}
|
|
) }
|
|
R|<local>/value|.R|/checkType|<R|KotlinClass?|>(<L> = checkType@fun R|CheckTypeInv<KotlinClass?>|.<anonymous>(): R|kotlin/Unit| {
|
|
this@R|special/anonymous|.R|/_|<R|KotlinClass?|>()
|
|
}
|
|
)
|
|
lval lambda: R|() -> KotlinClass| = R|<local>/kotlinClass|?.{ $subj$.R|kotlin/let|<R|KotlinClass|, R|() -> KotlinClass|>(<L> = let@fun <anonymous>(it: R|KotlinClass|): R|() -> KotlinClass| <kind=EXACTLY_ONCE> {
|
|
^ let@fun <anonymous>(): R|KotlinClass| {
|
|
^ R|<local>/it|
|
|
}
|
|
|
|
}
|
|
) }
|
|
R|<local>/lambda|.R|/checkType|<R|() -> KotlinClass|>(<L> = checkType@fun R|CheckTypeInv<kotlin/Function0<KotlinClass>?>|.<anonymous>(): R|kotlin/Unit| {
|
|
this@R|special/anonymous|.<Inapplicable(INAPPLICABLE_WRONG_RECEIVER): /_>#<R|(kotlin/Unit) -> KotlinClass?|>()
|
|
}
|
|
)
|
|
}
|
|
public final fun case2(kotlinClass: R|KotlinClass|): R|kotlin/Unit| {
|
|
lval value: R|KotlinClass| = R|<local>/kotlinClass|.R|kotlin/let|<R|KotlinClass|, R|KotlinClass|>(<L> = let@fun <anonymous>(it: R|KotlinClass|): R|KotlinClass| <kind=EXACTLY_ONCE> {
|
|
^ R|<local>/it|
|
|
}
|
|
)
|
|
R|<local>/value|.R|/checkType|<R|KotlinClass|>(<L> = checkType@fun R|CheckTypeInv<KotlinClass>|.<anonymous>(): R|kotlin/Unit| {
|
|
this@R|special/anonymous|.R|/_|<R|KotlinClass|>()
|
|
}
|
|
)
|
|
lval lambda: R|() -> KotlinClass| = R|<local>/kotlinClass|.R|kotlin/let|<R|KotlinClass|, R|() -> KotlinClass|>(<L> = let@fun <anonymous>(it: R|KotlinClass|): R|() -> KotlinClass| <kind=EXACTLY_ONCE> {
|
|
^ let@fun <anonymous>(): R|KotlinClass| {
|
|
^ R|<local>/it|
|
|
}
|
|
|
|
}
|
|
)
|
|
R|<local>/lambda|.R|/checkType|<R|() -> KotlinClass|>(<L> = checkType@fun R|CheckTypeInv<kotlin/Function0<KotlinClass>>|.<anonymous>(): R|kotlin/Unit| {
|
|
this@R|special/anonymous|.<Inapplicable(INAPPLICABLE_WRONG_RECEIVER): /_>#<R|(kotlin/Unit) -> KotlinClass?|>()
|
|
}
|
|
)
|
|
}
|