Beef icon indicating copy to clipboard operation
Beef copied to clipboard

Generic Tuple parameter does not work alongside default value arguments

Open elusivePorpoise opened this issue 8 months ago • 0 comments

static void Iffyify<TArgs>(int a = 2, params TArgs args)
    where TArgs : Tuple
{}
static void Main()
{
    Iffyify(args: "a stringy"); // Error: Too many arguments, expected 1 fewer.
}

elusivePorpoise avatar Apr 13 '25 02:04 elusivePorpoise