[SR-10018] Compiler crashes when weakfying object on closure declaration #52421
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
type checker
Area → compiler: Semantic analysis
Attachment: Download
Environment
Swift 4.1
Xcode 10.1 (10B61)
macOS 10.14.3
Playground version 5.0 (iOS)
MacBook Pro 15" (2017)
Additional Detail from JIRA
md5: 4d58da649c7f47a03585801ec11fffa8
Issue Description:
When using the syntax [weak object] in a closure that is created inside another closure, the compiler crashes with the error "Segmentation fault: 11". But, weirdly enough, if you weakfy the object inside the top closure (even if not using it), the compiler stops crashing.
Here is a sample code (extracted from the Playground attached to this report):
The text was updated successfully, but these errors were encountered: