зеркало из https://github.com/microsoft/Power-Fx.git
Fix check to exclude UDFs from being marked as async if binding does not exist (#2595)
There was a mistake in following PR UDF delegation:
752efe46c4
This commit is contained in:
Родитель
752efe46c4
Коммит
6b0ca3fdca
|
@ -2261,7 +2261,7 @@ namespace Microsoft.PowerFx.Core.Binding
|
|||
if (function != null)
|
||||
{
|
||||
// If the invocation is async then the whole call path is async.
|
||||
if (markIfAsync && (function is UserDefinedFunction udf && udf.Binding != null) && function.IsAsyncInvocation(node, this))
|
||||
if (markIfAsync && (function is not UserDefinedFunction udf || udf.Binding != null) && function.IsAsyncInvocation(node, this))
|
||||
{
|
||||
FlagPathAsAsync(node);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче