[FE 1.0] Add fallback for extracting when call
This commit is contained in:
committed by
teamcity
parent
42e71f8c53
commit
db54d18c72
@@ -160,7 +160,7 @@ fun KtElement.getCall(context: BindingContext): Call? {
|
||||
if (element is KtWhenExpression) {
|
||||
val subjectVariable = element.subjectVariable
|
||||
if (subjectVariable != null) {
|
||||
return subjectVariable.getCall(context)
|
||||
return subjectVariable.getCall(context) ?: context[CALL, element]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user