ErrorProne.NET
ErrorProne.NET copied to clipboard
EPS09 doesn't check for target-typed new
Hi. Thanks for the ErrorProne.NET.
Unfortunately it triggers false positive EPS09 when using target-typed new. It handles "normal" constructors properly, but doesn't work when the type is omitted.
void F(in MyStruct v) { }
void G() => F(new());