[FIR][LightTree] Use same fake elements kinds as in psi
Otherwise type resolution(!) for empty lambda works differently
This commit is contained in:
committed by
TeamCityServer
parent
e8e9f67069
commit
f3dc8dfb21
+4
-2
@@ -180,9 +180,11 @@ class ExpressionsConverter(
|
|||||||
if (statements.isEmpty()) {
|
if (statements.isEmpty()) {
|
||||||
statements.add(
|
statements.add(
|
||||||
buildReturnExpression {
|
buildReturnExpression {
|
||||||
source = expressionSource
|
source = expressionSource.fakeElement(FirFakeSourceElementKind.ImplicitReturn)
|
||||||
this.target = target
|
this.target = target
|
||||||
result = buildUnitExpression { source = expressionSource }
|
result = buildUnitExpression {
|
||||||
|
source = expressionSource.fakeElement(FirFakeSourceElementKind.ImplicitUnit)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user