diff --git a/src/tests/Microsoft.PowerFx.Interpreter.Tests.Shared/RecalcEngineTests.cs b/src/tests/Microsoft.PowerFx.Interpreter.Tests.Shared/RecalcEngineTests.cs index e3f6f3210..d1e3c6a84 100644 --- a/src/tests/Microsoft.PowerFx.Interpreter.Tests.Shared/RecalcEngineTests.cs +++ b/src/tests/Microsoft.PowerFx.Interpreter.Tests.Shared/RecalcEngineTests.cs @@ -1889,7 +1889,7 @@ namespace Microsoft.PowerFx.Tests hasNoAge(e: Employee): Number = IsBlank(getAge(e));", "hasNoAge({Name: \"Bob\", Title: \"CEO\"})", true, - 1.0)] + 1.0)] // Types with UDF restricted primitive types resolve successfully [InlineData( @@ -2049,6 +2049,13 @@ namespace Microsoft.PowerFx.Tests true, 1.0)] + // No error on a UDF named RecordOf + [InlineData( + @"RecordOf(x:Number): Number = x + 1;", + "RecordOf(41)", + true, + 42.0)] + // Fails for anyother type other than table [InlineData( "Account := Type(RecordOf(SomeRecord));",