Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IDIC casts throwing exceptions for is operator checks #1676

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

manodasanW
Copy link
Member

Fix is operator checks such as in AddRange throwing exceptions when IDIC indicates it doesn't support that interface. We will still throw if an explicit cast is done. In this scenario IDIC was getting triggered as we had a IReadOnlyList and were trying to check if it implements ICollection which it actually doesn't as it implements IReadOnlyCollection. So, in that scenario, we should indeed return false rather than throw an exception for the AOT check.

Fixes #1671

@manodasanW manodasanW requested a review from Sergio0694 July 22, 2024 03:14
@manodasanW manodasanW merged commit fa224c3 into staging/AOT Jul 22, 2024
10 checks passed
@manodasanW manodasanW deleted the manodasanw/idicexception branch July 22, 2024 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants