No compiler error when declaring multiple parameters with the same name in abstract methods #13148
Labels
Area-Compiler-Checking
Type checking, attributes and all aspects of logic checking
Bug
Impact-Medium
(Internal MS Team use only) Describes an issue with moderate impact on existing code.
Milestone
Repro steps
Provide the steps required to reproduce the problem:
Examples
generates (SharpLab)
Expected behavior
A compiler error disallowing multiple parameters with the same name in abstract methods.
Actual behavior
The code compiles, but the names of all repeated parameter names are unutterable.
Known workarounds
It is still possible to implement an abstract method so defined, although it is not possible to make the concrete implementation's parameters' names match those of the abstract method being overridden.
Related information
The text was updated successfully, but these errors were encountered: