It crashes, when passing any Sequence to Array.init(_ s: Sequence) #64303
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler itself
crash
Bug: A crash, i.e., an abnormal termination of software
existentials
Feature: values of types like `any Collection`, `Any` and `AnyObject`; type-erased values
generics
Feature: generic declarations and types
implicit existential opening
Feature → existentials: implicit opening of existentials when passed to parameters of generic type
swift 5.9
type checker
Area → compiler: Semantic analysis
Description
It crashes when passing any Sequence to Array.init(_ s: Sequence)
VSCode showed
The SourceKit-LSP server crashed 6 times in the last 3 minutes. See the output for more information. Do you want to restart it again.
when typing command
swift build
, it showed the error below:Steps to reproduce
Expected behavior
No crash.
Environment
vscode
20.04.5 LTS
swift 5.7
The text was updated successfully, but these errors were encountered: