Compiler crash with variadic generics, closures and tuples #76010
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
crash
Bug: A crash, i.e., an abnormal termination of software
triage needed
This issue needs more specific labels
Description
The code below demonstrates a compiler crash when using variadic generics. This crash does not happen in Swift 5.10. So far I have reproduced it in the Swift shipping with Xcode 16.0 beta 4+ and Xcode 16.1 beta.
Reproduction
Stack dump
Expected behavior
This code should compile, and it does on Swift 5.10 and Xcode 15.4.
Environment
swift-driver version: 1.115 Apple Swift version 6.0 (swiftlang-6.0.0.9.10 clang-1600.0.26.2)
Target: arm64-apple-macosx14.0
Additional information
It's worth noting that it appears to be related to using a tuple in the argument for the closure:
The text was updated successfully, but these errors were encountered: