Skip to content

The SyntaxGenerator adds sealed keyword for delegate types. #11937

@andriipatsula

Description

@andriipatsula

Example:

namespace Foo
{
    public delegate bool SyntaxReceiverCreator(int a, bool b);
}

After roundtrip: source -> ISymbol-> SyntaxGenerator -> source:

namespace Foo
{
    public sealed delegate bool SyntaxReceiverCreator(int a, bool b);
}

as a result: Build falure: error CS0106: The modifier 'sealed' is not valid for this item

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions