[SR-13113] assignment to enum instance should recursively deinitialize associated values #55559
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Environment
$ swift --version
Swift version 5.2-dev (LLVM 4cd92ac, Swift 79716ef)
Target: x86_64-unknown-linux-gnu
Additional Detail from JIRA
md5: 678a4cbbc94b90e21d3fced8a6e5ffaa
duplicates:
Issue Description:
Right now, the following test program prints `false` when it should print `true`. it works as expected if the `struct` wrapper is removed and the program is compiled with `-O`.
related discussion: https://forums.swift.org/t/why-isn-t-isuniquelyreferenced-working-here/37949/6?u=taylorswift
The text was updated successfully, but these errors were encountered: