7f5cd16f65
* Fix create_script validator false-positive on constructor invocations
The regex-based duplicate method signature check misidentified
`new Type(...)` constructor calls as method declarations, causing
valid C# like `new GameObject("A"); new GameObject("B");` to be
rejected. Capture the return-type token and skip when it is `new`.
Addresses #1044
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
* Address review: Ordinal comparison, add new-modifier + constructor test
Use string.Equals with StringComparison.Ordinal for the "new" check.
Add test combining `public new void Init()` with nearby constructor
invocations to guard against modifier vs return-type parsing regressions.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>