[SR-2876] Subscript on Array(someString.characters) Crashes Compiler with Assert #45470
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
Additional Detail from JIRA
md5: eb8ea627702694001057416b113f7f78
relates to:
Issue Description:
Subscripting the result of the initializer directly crashes the type checker. Putting the array into a constant and then subscripting that works fine. See this for clarity:
The text was updated successfully, but these errors were encountered: