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-9703] REPL has incorrect summaries of optional unsigned integers #4345

Closed
benrimmington opened this issue Jan 18, 2019 · 0 comments
Closed
Labels
bug Something isn't working LLDB for Swift

Comments

@benrimmington
Copy link

Previous ID SR-9703
Radar None
Original Reporter @benrimmington
Type Bug
Status Resolved
Resolution Duplicate
Environment

macOS 10.13.6 and Swift 5.0 snapshot (org.swift.5020190116a)

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

md5: 2047823aaedb6c9e5b6f7a55f4ef5d3a

duplicates:

  • SR-4091 Incorrect result shown in REPL for 'UInt8?'

Issue Description:

REPL has incorrect summaries of optional unsigned integers.

Welcome to Apple Swift version 5.0-dev (LLVM a6b53a73a4, Clang e5012f3421, Swift 72c4f73082).
Type :help for assistance.
  1> // ...127
  2> 0 as UInt8?
$R0: UInt8? = 0
  3> 1 as UInt8?
$R1: UInt8? = 1
  4> 126 as UInt8?
$R2: UInt8? = 126
  5> 127 as UInt8?
$R3: UInt8? = 127
  6>  
  7> // 128...
  8> 128 as UInt8?
$R4: UInt8? = -128
  9> 129 as UInt8?
$R5: UInt8? = -127
 10> 254 as UInt8?
$R6: UInt8? = -2
 11> 255 as UInt8?
$R7: UInt8? = -1

Same results in Swift 4.2.1 and 5.0-dev REPLs.

@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
This issue was closed.
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

1 participant