Skip to content

SGF1003 case #67

Description

@pjanck

Describe the bug

SGF1003 fires, but only in a specific case.

To Reproduce

I want to have an abstract class on top of IncrementalGenerator to introduce some virtual functions that my generators should override.

public abstract class ASourceGenerator(string name) : IncrementalGenerator(name)
{}

Until now, it worked fine. I now wish to introduce constructor with body to make use of logging levels (#55 ).

I get the SGF1003 error if my code looks like

public abstract class ASourceGenerator : IncrementalGenerator
{
    /// <summary>
    /// Constructor
    /// </summary>
    /// <param name="name">Needed for underlying SGF library. Provide with <c>nameof(...)</c>.</param>
    public ASourceGenerator(string name)
        : base(name)
    {}
}

Expected behavior

The two syntax above to me seem equal. Where / what is the culprit? I am unsure if my usage and/or understanding is wrong, the SGF1003 fires wrong, or any other possibility.

Desktop (please complete the following information):

  • OS: windows 10
  • Browser: none
  • Version: 2.0.15

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions