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

Add test coverage for generic type substitution with byreflike generics #71276

Merged

Commits on Jun 24, 2022

  1. Add test coverage for generic type substitution with byreflike generics

    This test coverage also found some interesting behavior (issue TBD) in the following scenario:
    
    Given a `<byreflike T>` (aka a `T` that can be a byreflike type), we allow passing this to a `<U>` generic parameter (where `U` does not allow byref-like types).
    
    We do correctly throw when instantiating the generic with a byreflike type though, so we don't end up in a bad state.
    
    I've marked this test with an ActiveIssue attribute pending feedback on whether or not this is a bug.
    jkoritzinsky committed Jun 24, 2022
    Configuration menu
    Copy the full SHA
    b1a17c5 View commit details
    Browse the repository at this point in the history