зеркало из https://github.com/microsoft/Power-Fx.git
Revert part of 2673 (#2678)
This commit is contained in:
Родитель
062a89718b
Коммит
74ea07308f
|
@ -43,11 +43,11 @@ namespace Microsoft.PowerFx.Types
|
|||
|
||||
protected override bool TryGetField(FormulaType fieldType, string fieldName, out FormulaValue result)
|
||||
{
|
||||
if (Type.TryGetFieldType(fieldName, out var logical, out var compileTimeType))
|
||||
if (Type.TryGetFieldType(fieldName, out var compileTimeType))
|
||||
{
|
||||
// Only return field which were specified via the expectedType (IE RecordType),
|
||||
// because inner record value may have more fields than the expected type.
|
||||
if (compileTimeType == fieldType && _fields.TryGetValue(logical, out result))
|
||||
if (compileTimeType == fieldType && _fields.TryGetValue(fieldName, out result))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче