[SR-15082] Forced checked cast runtime crash on optional<T> to T in array element position #57408
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
run-time crash
Bug → crash: Swift code crashed during execution
Environment
Xcode 13 Beta 4
Additional Detail from JIRA
md5: 42e65820f8dec73893bd2ccaf5ad7ce4
relates to:
Issue Description:
As discussed in SR-15038 when using an array with an optional element of type X forced checked cast to an array of element of unwrapped X causes a runtime crash. Also as discussed there is not clear if that is something that shouldn't be allowed by the type checker and fail to compile or is really the runtime that should handle this.
Runtime crash logs reported by @jpsim
The text was updated successfully, but these errors were encountered: