You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rnapier opened this issue
Aug 19, 2020
· 2 comments
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfSILGenArea → compiler: The SIL generation stage
Using attaswift/Deque, using Collection methods sometimes confuses the compiler. Generally it just doesn't understand that Deque<T>.Element is T. Sometimes it complains that the compiler can't generate a diagnostic. And finally I got it to crash (attached).
I can't easily reproduce this in a Playground. It generally seemed to work fine. But in my project, Deque breaks the compiler any time I try to use Collection methods on it.
The crash came when I added (_buffers is a Deque<PlayBuffer>):
letbuffer = self._buffers.first
The text was updated successfully, but these errors were encountered:
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.compilerThe Swift compiler in itselfSILGenArea → compiler: The SIL generation stage
Attachment: Download
Additional Detail from JIRA
md5: f2d290fd2d82ce48beaad4c29de73a69
Issue Description:
Using attaswift/Deque, using Collection methods sometimes confuses the compiler. Generally it just doesn't understand that Deque<T>.Element is T. Sometimes it complains that the compiler can't generate a diagnostic. And finally I got it to crash (attached).
I can't easily reproduce this in a Playground. It generally seemed to work fine. But in my project, Deque breaks the compiler any time I try to use Collection methods on it.
The crash came when I added (_buffers is a Deque<PlayBuffer>):
The text was updated successfully, but these errors were encountered: