Compile: ``` using System.Runtime.CompilerServices; [NonNullTypes(true)] [System.Obsolete(D.M1(D.M2()))] class D { static void M1(string x) => throw null; static string? M2() => throw null; } ``` See `NonNullTypes_DoNotWarnInsideAttributes` test.