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-12297] Date? always displays in REPL as nil even when non-nil #54727

Closed
swift-ci opened this issue Feb 28, 2020 · 2 comments
Closed

[SR-12297] Date? always displays in REPL as nil even when non-nil #54727

swift-ci opened this issue Feb 28, 2020 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-12297
Radar None
Original Reporter rgov (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate
Environment

Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
Target: x86_64-apple-darwin19.3.0

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug
Assignee None
Priority Medium

md5: 23ad9a13615a211e6f7825a1c60e02f4

duplicates:

  • SR-12172 Description of Date? expression is printed as nil even when non-nil

Issue Description:

  7> let d: Date? = Date()
d: Date? = nil
  8> print(d)
Optional(2020-02-28 21:12:01 +0000)
@swift-ci
Copy link
Collaborator Author

Comment by Ryan Govostes (JIRA)

Relatedly this seems like a missed opportunity to show something useful:

  3> Date()
$R0: Date = {}

@martinr448
Copy link

Looks like a duplicate of SR-12172.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.
Projects
None yet
Development

No branches or pull requests

2 participants