Fix issue with incomplete property overrides in C# sourcegen
This commit is contained in:
committed by
Raul Santos
parent
fa6cad230f
commit
4bb041de8b
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user