Ignore handleReturn calls if functions is not operator
This commit is contained in:
@@ -83,7 +83,7 @@ fun FakeCallResolver.resolveCoroutineHandleResultCallIfNeeded(
|
|||||||
OperatorNameConventions.COROUTINE_HANDLE_RESULT, callElement, callElement, FakeCallKind.OTHER,
|
OperatorNameConventions.COROUTINE_HANDLE_RESULT, callElement, callElement, FakeCallKind.OTHER,
|
||||||
listOf(firstArgument, continuation))
|
listOf(firstArgument, continuation))
|
||||||
|
|
||||||
if (resolutionResults.isSuccess) {
|
if (resolutionResults.isSuccess && resolutionResults.resultingDescriptor.isOperator) {
|
||||||
context.trace.record(BindingContext.RETURN_HANDLE_RESULT_RESOLVED_CALL, callElement, resolutionResults.resultingCall)
|
context.trace.record(BindingContext.RETURN_HANDLE_RESULT_RESOLVED_CALL, callElement, resolutionResults.resultingCall)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -71,7 +71,7 @@ class FutureController<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun handleResult(value: T, c: Continuation<Nothing>) {
|
operator fun handleResult(value: T, c: Continuation<Nothing>) {
|
||||||
future.complete(value)
|
future.complete(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@ class FutureController<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun handleResult(value: T, c: Continuation<Nothing>) {
|
operator fun handleResult(value: T, c: Continuation<Nothing>) {
|
||||||
future.complete(value)
|
future.complete(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user