Trailing comma not supported in tuple types or closure types despite SE-0439 #81485
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
function types
Feature → types: function types
parser
Area → compiler: The legacy C++ parser
swift 6.2
tuple types
Feature → types: Tuple types
types
Feature: types
unexpected error
Bug: Unexpected error
Uh oh!
There was an error while loading. Please reload this page.
Description
In Swift 6.1, trailing commas are unexpectedly not supported in tuple types or closures types, despite being supported in tuple and closure values.
Reproduction
Compile the above code using Swift 6.1 or later. e.g. https://swiftfiddle.com/727fq4hkxzbcrojuf7e6lpkevu
Expected behavior
The code should compile without errors.
Environment
Swift version 6.2-dev (LLVM a3e32cdaae72f3d, Swift fa86097)
Additional information
No response
The text was updated successfully, but these errors were encountered: