Local method overloading #4909
-
It seems like local methods don't support overloading. Is this a known limitation? It might not matter in most cases, but gets really confusing for top level programs. And considering top level programs are intended to ease learning curve of C#, this definitely doesn't serve that goal. CC: @KathleenDollard (as you asked, my 2 cents on making top level program a default console template) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
This is a discussion for csharplang as it involves potentially changing the language. I would generally be in support of this, though there may be hidden complexity that makes this difficult. |
Beta Was this translation helpful? Give feedback.
-
Duplicate of #3112 |
Beta Was this translation helpful? Give feedback.
-
I thought forbidding overloading of local functions was a very explicit language design decision (and that if several members of the language design team could reverse time they might forbid overloading in general in the C# language)? |
Beta Was this translation helpful? Give feedback.
Duplicate of #3112