mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
Passing the same local as multiple out arguments of one call made DeclareVariables turn the first use into an implicitly-typed declaration, producing 'f(out var x, out x)'. Referencing an implicitly-typed out variable in another argument of the declaring call is rejected by the compiler (CS8196), because its type is only inferred once overload resolution of that call has completed. The explicitly-typed form 'f(out int x, out x)' is valid, so fall back to the explicit type in that case. Assisted-by: Claude:claude-fable-5:Claude Codepull/3878/head
2 changed files with 60 additions and 1 deletions
Loading…
Reference in new issue