[SR-5250] Establish if this is intended behavior or bug in Dictionary's new subscript(_:default:) #47825
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
standard library
Area: Standard library umbrella
Additional Detail from JIRA
md5: d7492344859e178e647ee3da9471e91d
Issue Description:
I know that NSMutableString is a reference type and String is a value type and that the default argument is an @autoclosure. I also know that the newly created NSMutableString instance is just released immediately after the append call, without being stored and retained in the Dictionary's storage.
Is this the intended behavior?
The text was updated successfully, but these errors were encountered: