32fa2fc476
In qualified expression like `foo().`, selector expression is null. Because of that the whole expression was marked as an error FIR expression, and `foo()` part was not resolved at all (including arguments and everything else). This commit fixes the problem by providing receiver's FIR expression as an underlying expression for error FIR expression. That way it will be seen by all resolve transformers and will be successfully resolved. ^KTIJ-21484 Fixed
26 lines
950 B
Plaintext
Vendored
26 lines
950 B
Plaintext
Vendored
FILE: emptySelectorInQualifiedExpression.kt
|
|
public final fun foo(action: R|() -> kotlin/Unit| = fun <anonymous>(): R|kotlin/Unit| <inline=Unknown> {
|
|
^ Unit
|
|
}
|
|
): R|kotlin/Int| {
|
|
^foo Int(0)
|
|
}
|
|
public final fun usageResolved1(): R|kotlin/Unit| {
|
|
ERROR_EXPR(Qualified expression without selector)
|
|
}
|
|
public final fun usageResolved2(): R|kotlin/Unit| {
|
|
ERROR_EXPR(Qualified expression without selector)
|
|
}
|
|
public final fun usageResolved3(): R|kotlin/Unit| {
|
|
ERROR_EXPR(Qualified expression without selector)
|
|
}
|
|
public final fun usageUnresolved1(): R|kotlin/Unit| {
|
|
ERROR_EXPR(Qualified expression without selector)
|
|
}
|
|
public final fun usageUnresolved2(): R|kotlin/Unit| {
|
|
ERROR_EXPR(Qualified expression without selector)
|
|
}
|
|
public final fun usageUnresolved3(): R|kotlin/Unit| {
|
|
ERROR_EXPR(Qualified expression without selector)
|
|
}
|