We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This works:
func foo<each T>(xs: (repeat each T) = (0, 0)) {}
This doesn't:
func foo<each T>(xs: (repeat each T) = 0) {} // error: Default argument value of type 'Int' cannot be converted to type '(repeat each T)'
Swift version 6.2-dev (LLVM 872428812ba43af, Swift 9ed8b664fd017bc)