UiPath / CoreWF

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

Handle return type of 'null' expressions #323

Closed andrei-ungureanu-uipath closed 1 month ago

andrei-ungureanu-uipath commented 1 month 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 1 month ago

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

github-actions[bot] commented 1 month 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.