WiseTechGlobal / WTG.Analyzers

Analyzers from WiseTech Global to enforce our styles, behaviours, and prevent common mistakes.
Other
15 stars 3 forks source link

Relax WTG1001 for partial methods. #205

Closed brian-reichle closed 1 year ago

brian-reichle commented 1 year ago

C#9 allows partial methods to have return types and out arguments, but only when given an explicit accessibility.

partial class Foo
{
    partial int Baz(); // <-- reports CS8796
    private partial int Bar(); // <-- reports WTG1001.
}

Should change VisibilityAnalyzer to ignore partial methods.