[SR-14399] Compiler crash with Self as closure parameter #56757
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
Self in class
Feature → types: The 'Self' type in classes
SILGen
Area → compiler: The SIL generation stage
swift 5.4
type checker
Area → compiler: Semantic analysis
Environment
Swift version 5.4-dev (LLVM bd2476a, Swift 14c1853)
Target: x86_64-apple-darwin20.3.0
OS: macOS Big Sur 11.2.3
Additional Detail from JIRA
md5: 5d60f820e589fc287538e4bf6877aec7
Issue Description:
The following code crashes in the CSApply:
If you remove the discard assignment, then it crashes in SIL:
The text was updated successfully, but these errors were encountered: