FirelyTeam / firely-cql-sdk

BSD 3-Clause "New" or "Revised" License
31 stars 17 forks source link

Fix generated C# - safely casting from base to derived always outputs `null` #495

Closed baseTwo closed 3 months ago

baseTwo commented 3 months ago

This change introduced a bug where safe casting always emits a null expression image

See null expression below image

Update the ChangeType method to also check if it is possible to do safe casting (ie when a base is safely cast to a derived type)