[SR-1217] Wrong value after optimizations on Xcode 7.3 / Swift 2.2 #43825
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
optimized only
Flag: An issue whose reproduction requires optimized compilation
Attachment: Download
Additional Detail from JIRA
md5: af335a4cb7f50940b7c12be3e512affa
relates to:
Issue Description:
When having a framework containing a struct with 2 initializers (one from an extension) with a combination of a protocol such as:
... and accessing this model from the main app as:
the resulting value of `user.chargeAccounts[0].failed` is invalid (only when compiling for release mode, regardless of the optimization flags). This prints:
Attached an example project.
The text was updated successfully, but these errors were encountered: