Wrong warning on extension with specialized variadic type #70640
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
parameter packs
Feature → generics: Parameter packs
Description
After extending a variadic type with a conditional conformance, the compiler generates an incorrect warning when executing the code below. The warning refers to line:
and the warning states:
This is incorrect because the cast can succeed when
Cis the empty pack.Reproduction
Expected behavior
No warning is displayed.
Environment
swift-driver version: 1.87.3 Apple Swift version 5.9.2 (swiftlang-5.9.2.2.56 clang-1500.1.0.2.5)
Target: arm64-apple-macosx14.0
Additional information
This has been discussed with @slavapestov in the forums.
The text was updated successfully, but these errors were encountered: