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

Disallow arrays of System.Void #94835

Merged
merged 1 commit into from
Nov 17, 2023
Merged

Disallow arrays of System.Void #94835

merged 1 commit into from
Nov 17, 2023

Commits on Nov 17, 2023

  1. Disallow arrays of System.Void

    The CoreCLR type loader allowed creating arrays of System.Void. Many operations with these invalid array types failed, often in inscrutable ways. For example, GetInterfaces() call failed with type load exception of IEnumerable type. The exact failure modes are different between runtimes.
    
    It is better to disallow creating these invalid array types in the first place, across all runtimes, to make the behavior robust and consistent.
    
    Related to dotnet#88620
    
    Fixes dotnet#94086
    jkotas committed Nov 17, 2023
    Configuration menu
    Copy the full SHA
    6773a92 View commit details
    Browse the repository at this point in the history