Skip to content

Conversation

@sbomer
Copy link
Member

@sbomer sbomer commented Oct 26, 2023

Fixes the assert from #94016. #94057 tracks adding full support for this in the analyzer.

We had some existing tests that only covered IDynamicInvocationOperation. Those have been moved to a shared testcase (shared by ILLink/NativeAot), and some additional testcases have been added that include coverage for IDynamicMemberReference, which was causing the assert.

Fixes #94016

@sbomer sbomer requested a review from agocke October 26, 2023 17:59
@sbomer sbomer requested a review from marek-safar as a code owner October 26, 2023 17:59
@ghost ghost added linkable-framework Issues associated with delivering a linker friendly framework area-Tools-ILLink .NET linker development as well as trimming analyzers labels Oct 26, 2023
@ghost ghost assigned sbomer Oct 26, 2023
@ghost
Copy link

ghost commented Oct 26, 2023

Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @sbomer, @joperezr, @marek-safar
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes the assert from #94016. #94057 tracks adding full support for this in the analyzer.

We had some existing tests that only covered IDynamicInvocationOperation. Those have been moved to a shared testcase (shared by ILLink/NativeAot), and some additional testcases have been added that include coverage for IDynamicMemberReference, which was causing the assert.

Author: sbomer
Assignees: -
Labels:

linkable-framework

Milestone: -

@sbomer
Copy link
Member Author

sbomer commented Oct 26, 2023

Failure is #93522

@sbomer sbomer merged commit 56b3ee4 into dotnet:main Oct 26, 2023
@sbomer sbomer deleted the dynamicObjectAssertFix branch November 3, 2023 18:39
liveans pushed a commit to liveans/dotnet-runtime that referenced this pull request Nov 9, 2023
Fixes the assert from
dotnet#94016. dotnet#94057
tracks adding full support for this in the analyzer.

We had some existing tests that only covered
IDynamicInvocationOperation. Those have been moved to a shared
testcase (shared by ILLink/NativeAot), and some additional
testcases have been added that include coverage for
IDynamicMemberReference, which was causing the assert.

This includes the same fix for IDynamicIndexerAccessOperation.
@ghost ghost locked as resolved and limited conversation to collaborators Dec 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Tools-ILLink .NET linker development as well as trimming analyzers linkable-framework Issues associated with delivering a linker friendly framework

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ILink][browser][debug] Microsoft.CodeAnalysis.Operations.DynamicMemberReferenceOperation

2 participants