[SR-7305] Error when accessing .keys or .values on [String: Int] #49853
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
run-time crash
Bug → crash: Swift code crashed during execution
standard library
Area: Standard library umbrella
Environment
Xcode 9.2
Swift 4.0.3
Additional Detail from JIRA
md5: e4b5cff3872bd85ec09b6dd65bfb1e6b
duplicates:
Issue Description:
Example:
This produces a “bad access” error in playgrounds and compiled programs in Xcode, but not in the Swift REPL from the command line.
If the dictionary has Int keys, there is no error.
The text was updated successfully, but these errors were encountered: