microsoft / Power-Fx

Power Fx low-code programming language
MIT License
3.21k stars 327 forks source link

Data types coercion for GUID #1052

Closed anderson-joyle closed 1 year ago

anderson-joyle commented 1 year ago

The following works in PA but gives a runtime error in C# interpreter: Upper(GUID("2f8f55fb-4009-4cb6-82aa-4135dbb7244c"))

https://github.com/microsoft/Power-Fx/blob/2ee0b4896d8f0750fab9924205030337b57dd093/src/libraries/Microsoft.PowerFx.Core/Functions/TexlFunction.cs#L968

expetedType accepts the coercion but doesn't give the change to set coercionType with the destination type.

coletaylor1 commented 1 year ago

P1 for cards

MikeStall commented 1 year ago

Mitigated with #1150, moving to 1.1.

CarlosFigueiraMSFT commented 1 year ago

This was fixed with #1281