UiPath / CoreWF

WF runtime ported to work on .NET 6
MIT License
1.15k stars 218 forks source link

Handle return type of 'null' expressions #323

Closed andrei-ungureanu-uipath closed 6 months ago

andrei-ungureanu-uipath commented 6 months ago

When a precompiled value is created, determining the ReturnType of an expression may throw an exception for certain values like null and () => null because there needs to be an implicit cast on the SemanticModel to figure out the type. In these scenarios, the Type property will be null and we should fallback to the ConvertedType property as this one is populated when it cannot be inferred without casting.

aoltean16 commented 6 months ago

These are both design-only features, as they're only called when typing into an expression textbox

github-actions[bot] commented 6 months ago

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.