Skip to content

Commit 98260bb

Browse files
antonsyndclaude
andcommitted
docs: note that @public underscore members may trigger C# style analyzers (#491)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d5cc95e commit 98260bb

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

docs/language_specification/decorators.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ class Example:
7676
pass
7777
```
7878

79+
> **Note:** When `@public` overrides a naming-convention access level (e.g., `@public __should_be_public`),
80+
> the generated C# member retains the underscore prefix (`public int __ShouldBePublic`). Downstream C#
81+
> analyzers (StyleCop, Roslyn analyzers) may flag this as a naming violation on the generated output.
82+
> These warnings on generated code can be safely ignored.
83+
7984
*Implementation: ✅ Native - Direct mapping to C# access modifiers.*
8085

8186
## Method Modifiers

0 commit comments

Comments
 (0)