2021年1月18日星期一

No overload expects 3 arguments, but overloads do exist that expect either 3 or Infinity arguments

enter image description here The sample code can be seen here

No overload expects 3 arguments, but overloads do exist that expect either 3 or Infinity arguments.

Because the first argument may be empty after expansion, it says "No overload expects 3 arguments", but there is indeed a case where the method overload expects 3 arguments, which is very contradictory.

So why not just throw an error like this: Expected 1-4 arguments, but got 3 or Infinity arguments. (2554)

Of course, there are some problems with this phrase, so is there a more appropriate description?

https://stackoverflow.com/questions/65784968/no-overload-expects-3-arguments-but-overloads-do-exist-that-expect-either-3-or January 19, 2021 at 11:05AM

没有评论:

发表评论