[SR-13112] assignment to enum instance should deinitialize associated values on all optimization levels #55558
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: 43a01c2ae7a5e2ac494c04e32d0d72d5
Issue Description:
currently, the following test program prints `false` on normal settings, and `true` when compiled with `-O`
related discussion: https://forums.swift.org/t/why-isn-t-isuniquelyreferenced-working-here/37949/4?u=taylorswift
The text was updated successfully, but these errors were encountered: