Open
Description
Description
Trailing commas are unexpectedly not allowed in @available
annotations, despite annotations being mentioned as a supported use case in SE-0439.
@available(
*,
deprecated,
renamed: "bar", // unexpectedly not allowed
)
func foo() { }
Reproduction
Compile the above code using Swift 6.1+: https://swiftfiddle.com/oiaoenmyxbcajdqv4m522kji3q
Expected behavior
It should compile but doesn't
Environment
Swift version 6.2-dev (LLVM a3e32cdaae72f3d, Swift fa86097)
Additional information
No response