New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-9697] REPL displays wrong boolean dictionary values #4346
Comments
Comment by Robert Collins (JIRA) this is my puppy: https://stackoverflow.com/questions/54239569/dict-value-in-struct-is-ignored-for-bool?noredirect=1 🙂 I'm just attaching a comment here so I can keep track of progress |
This appears to be fixed in a recent Swift 5.0 snapshot. Although I don't know how or when it was fixed. e.g. |
I remember it being fixed but I can't find the bug for it. It was a problem with Dictionary, not Bool. jingham@apple.com (JIRA User)? |
Comment by Jim Ingham (JIRA) IIRC this was just a Radar, and @dcci fixed it. I looked briefly for the radar but couldn't find it, maybe Davide remembers better. |
Dictionary formatters changed quite a bit, and I also fixed a bug to take in account the padding (which might have fixed this). |
Works correctly with development snapshot from January 16, 2019. |
Additional Detail from JIRA
md5: b89d33183decc6bd01384d5aad3702c8
Issue Description:
(From https://forums.swift.org/t/repl-prints-wrong-dictionary-values/19588.) A dictionary with boolean values is displayed wrongly in the REPL, here the value is displayed as `false` instead of `true`:
`print()` shows the correct value, also accessing the value via subscript:
Tested with Swift 4.2.1 (Xcode 10.1) on macOS, and swift-4.2.1-RELEASE-ubuntu18.04 on Linux.
The text was updated successfully, but these errors were encountered: