[CP][stable channel] Bug-fix for bug in CastMap
#45990
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
cherry-pick-approved
Label for approved cherrypick request
cherry-pick-review
Issue that need cherry pick triage to approve
merge-to-stable
commit(s) to merge: 5b64d12
merge instructions: clean merge
What is the issue: A cast in
CastMap
was incorrectly doingas V
instead ofas V?
. This made otherwise valid code throw in some situations.What is the fix: Changed to
as V?
, which allowsnull
to be a value in the cast map.Why cherrypick: It's a very simple and painless fix for a reported bug (meaning someone has already hit it).
Risk: None. Only difference is that some code which would incorrectly throw will now work correctly.
Link to original issue(s): #45473
/cc @kevmoo @mit-mit @whesse @athomas @vsmenon @franklinyow
The text was updated successfully, but these errors were encountered: