Fix issue with incomplete property overrides in C# sourcegen

This commit is contained in:
Paul Joannon
2024-10-21 23:02:25 +02:00
committed by Raul Santos
parent fa6cad230f
commit 4bb041de8b
15 changed files with 264 additions and 9 deletions
@@ -163,7 +163,7 @@ namespace Godot.SourceGenerators
continue;
}
if (property.IsReadOnly || property.SetMethod!.IsInitOnly)
if (property.IsReadOnly || property.SetMethodOrBaseSetMethod() is not { IsInitOnly: false })
{
context.ReportDiagnostic(Diagnostic.Create(
Common.ExportedMemberIsReadOnlyRule,