Skip to content
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-12172] Description of Date? expression is printed as nil even when non-nil #4431

Open
sharplet opened this issue Feb 10, 2020 · 3 comments
Labels
bug Something isn't working LLDB for Swift

Comments

@sharplet
Copy link

Previous ID SR-12172
Radar rdar://problem/59496019
Original Reporter @sharplet
Type Bug
Additional Detail from JIRA
Votes 3
Component/s LLDB for Swift
Labels Bug
Assignee odnairy (JIRA)
Priority Medium

md5: b5b04e4cd5e70d74473bf2847f711006

is duplicated by:

  • SR-12297 Date? always displays in REPL as nil even when non-nil

Issue Description:

  1> import Foundation
  2> var d: Date?
d: Date? = nil
  3> d = Date()
  4> d
$R0: Date? = nil
  5> print(d)
Optional(2020-02-10 19:24:57 +0000)
@AliSoftware
Copy link

Observed the same behaviour in the REPL here too, not only with Date but also with Calendar. But this does not happen with some other types like String or Int though.

Personally I tested it with:

Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7)
Target: x86_64-apple-darwin19.3.0

@poya
Copy link

poya commented Feb 12, 2020

Looks like duplicate of SR-11593

@beccadax
Copy link

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working LLDB for Swift
Projects
None yet
Development

No branches or pull requests

4 participants