Skip to content

[CP][stable channel] Bug-fix for bug in CastMap #45990

Description

@lrhn

commit(s) to merge: 5b64d12

merge instructions: clean merge

What is the issue: A cast in CastMap was incorrectly doing as V instead of as V?. This made otherwise valid code throw in some situations.

What is the fix: Changed to as V?, which allows null 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

Metadata

Metadata

Assignees

Labels

area-core-librarySDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.cherry-pick-approvedLabel for approved cherrypick requestcherry-pick-reviewIssue that need cherry pick triage to approvemerge-to-stable

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions