Skip to content

Conversation

calda
Copy link
Contributor

@calda calda commented May 19, 2025

Corresponding compiler PR: swiftlang/swift#81612


In Swift 6.1, there are many cases where trailing commas should be supported but currently are not:

This includes cases like:

let foo: (
  bar: String,
  quux: String, // unexpectedly not supported in Swift 6.1
)

let closure: (
  String,
  String, // unexpectedly not supported in Swift 6.1
) -> (
  bar: String,
  quux: String, // unexpectedly not supported in Swift 6.1
)

let foo: Foo<
  String,
  Int,
  Boo, // unexpectedly not supported in Swift 6.1
>

typealias Bar<
  T1,
  T2
> = Foo<
  T1,
  T2,
  Bool, // unexpectedly not supported in Swift 6.1
>

protocol Baaz<
  T1,
  T2, // unexpectedly not supported in Swift 6.1
> {
  associatedtype T1
  associatedtype T2
}

@rintaro
Copy link
Member

rintaro commented May 20, 2025

@swift-ci Please test

@calda
Copy link
Contributor Author

calda commented May 20, 2025

Failure in the Swift Test macOS Platform job looks unrelated to me -- the Linux test passed 👍🏻

@rintaro
Copy link
Member

rintaro commented May 20, 2025

swiftlang/swift#81612
@swift-ci Please test

@rintaro rintaro merged commit 29fd4cc into swiftlang:main May 22, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants