[SR-13926] switch statement on enum that have case with protocol type value causes memory leaks #56324
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
memory leak
bug: Memory leak
Environment
XCode 12.2 swift-DEVELOPMENT-SNAPSHOT-2020-12-01-a-osx
Additional Detail from JIRA
md5: 126331b9d3473787dbdb90a93fb11de0
Issue Description:
notes:
If to replace associated value in .value2 on non-existential type the problem disappears.
If to replace argument of leak() to non-optional the problem disappears.
If to comment out 'case .value2: return' the problem disappears.
The text was updated successfully, but these errors were encountered: