Ignore handleReturn calls if functions is not operator

This commit is contained in:
Denis Zharkov
2016-06-08 13:02:42 +03:00
parent 692acc463a
commit e802049fd0
3 changed files with 3 additions and 3 deletions
@@ -83,7 +83,7 @@ fun FakeCallResolver.resolveCoroutineHandleResultCallIfNeeded(
OperatorNameConventions.COROUTINE_HANDLE_RESULT, callElement, callElement, FakeCallKind.OTHER,
listOf(firstArgument, continuation))
if (resolutionResults.isSuccess) {
if (resolutionResults.isSuccess && resolutionResults.resultingDescriptor.isOperator) {
context.trace.record(BindingContext.RETURN_HANDLE_RESULT_RESOLVED_CALL, callElement, resolutionResults.resultingCall)
}
}
+1 -1
View File
@@ -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)
}
+1 -1
View File
@@ -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)
}