Compiler crash with trailing closure involving variadic types #67766
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
triage needed
This issue needs more specific labels
Description
The following code is causing a compiler crash, with the error message
Assertion failed: (origPackType.matchesPack(substPackType)), function PackElementGenerator, file AbstractionPattern.cpp, line 804
(Full output/stack dump).Steps to reproduce
Build the script with the latest Swift development snapshot.
Expected behavior
The compiler shouldn't crash.
Environment
swift-DEVELOPMENT-SNAPSHOT-2023-08-03-a.xctoolchain
, Apple Swift version 5.9-dev (LLVM880cf58f10f5f0a
, Swiftf62c6c062e55591
)Additional context
The script compiles if you use an intermediate closure variable:
The text was updated successfully, but these errors were encountered: