03fc0fd381
It's not really necessary if the information about if the lambda was a trailing lambda can be directly saved in FirAnonymousFunctionExpression. Removing the FIR node uncovered a couple of bugs (UNINITIALIZED_ENUM_ENTRY, ERROR_IN_CONTRACT_DESCRIPTION) that were caused by assuming that a lambda is always a trailing lambda. #KT-66124
26 lines
1.0 KiB
Plaintext
Vendored
26 lines
1.0 KiB
Plaintext
Vendored
KT element: KtCallExpression
|
|
FIR element: FirFunctionCallImpl
|
|
FIR source kind: KtRealSourceElementKind
|
|
|
|
FIR element rendered:
|
|
R|/foo|(R|<local>/i|)
|
|
|
|
FIR FILE:
|
|
FILE: [ResolvedTo(IMPORTS)] callInsideLambdaInsideSuperCallFromSingleSecondaryConstructor.kt
|
|
public open [ResolvedTo(STATUS)] class A : R|kotlin/Any| {
|
|
public [ResolvedTo(STATUS)] [ContainingClassKey=A] constructor([ResolvedTo(STATUS)] x: R|() -> kotlin/Unit|): R|A| {
|
|
LAZY_super<R|kotlin/Any|>
|
|
}
|
|
|
|
}
|
|
public final [ResolvedTo(ANNOTATION_ARGUMENTS)] class B : R|A| {
|
|
public [ResolvedTo(BODY_RESOLVE)] [ContainingClassKey=B] constructor([ResolvedTo(BODY_RESOLVE)] i: R|kotlin/Int|): R|B| {
|
|
super<R|A|>([ResolvedTo(RAW_FIR)] [MatchingParameterFunctionTypeKey=kotlin/Function0<kotlin/Unit>] fun <anonymous>(): R|kotlin/Unit| <inline=Unknown> {
|
|
R|/foo|(R|<local>/i|)
|
|
}
|
|
)
|
|
}
|
|
|
|
}
|
|
public final [ResolvedTo(CONTRACTS)] fun foo([ResolvedTo(CONTRACTS)] any: R|kotlin/Any|): R|kotlin/Unit| {
|
|
} |