зеркало из https://github.com/microsoft/Power-Fx.git
Collect check semantics PA change (#2487)
PR https://github.com/microsoft/Power-Fx/pull/1964 checks for read-only fields. Changing the condition to run this check since PA deals with read-only fields differently.
This commit is contained in:
Родитель
77bb82cd96
Коммит
e13de7e19f
|
@ -339,7 +339,7 @@ namespace Microsoft.PowerFx.Core.Texl.Builtins
|
|||
|
||||
MutationUtils.CheckSemantics(binding, this, args, argTypes, errors);
|
||||
|
||||
if (binding.Features.PowerFxV1CompatibilityRules)
|
||||
if (!binding.CheckTypesContext.AnalysisMode)
|
||||
{
|
||||
MutationUtils.CheckForReadOnlyFields(argTypes[0], args.Skip(1).ToArray(), argTypes.Skip(1).ToArray(), errors);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче