Skip to content

StackOverflowException binding invocation in Obsolete attribute #29594

@cston

Description

@cston

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions