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
Describe the bug
SGF1003 fires, but only in a specific case.
To Reproduce
I want to have an abstract class on top of
IncrementalGeneratorto introduce some virtual functions that my generators should override.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
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):