Skip to content
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
This repository was archived by the owner on Sep 25, 2026. It is now read-only.

RUC analyzer doesn't produce a warning for type substitution with new() annotation #2165

Closed

Description

@agocke

Example code:

[RequiresUnreferencedCode(...)]
class C
{
}

static void M<T>() where T : new()
{
}
M<C>(); // should produce a warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions