Extracted from #108507
[RequiresUnreferencedCode("")]
class A;
class B<T> where T : new();
class C : B<A>
{
public C()
{ // No warning from the analyzer!
}
}
Note that the following example does warn:
[RequiresUnreferencedCode]
class Requires {}
class Derived : Requires
{
public Derived // warning IL2026
{
}
}
Extracted from #108507
Note that the following example does warn: