[SR-2349] Segfault while type-checking expression in which [AnyHashable: Any] cannot be converted to [String: String] #44956
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Xcode 8.0 beta 6 (8S201h)
Additional Detail from JIRA
md5: 1b51ef917951912c9069f15781f81271
duplicates:
relates to:
Issue Description:
Attempting to compile a source file (in Xcode or on the command line) with the following global functions:
Crashes with the following stack trace:
To reproduce, compile the attached
crash.swift
file.If I call
foo
with an array literal or anArray<Any>
rather thanArray<String>
, I get the expected diagnostic:The text was updated successfully, but these errors were encountered: