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-11185] can't call extension method with default value in lldb #4334

Closed
mattneub opened this issue Jul 22, 2019 · 5 comments
Closed

[SR-11185] can't call extension method with default value in lldb #4334

mattneub opened this issue Jul 22, 2019 · 5 comments

Comments

@mattneub
Copy link

Previous ID SR-11185
Radar None
Original Reporter @mattneub
Type Improvement
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s LLDB for Swift
Labels Improvement
Assignee None
Priority Medium

md5: ec5dbe92bd20fd98b29968e11d5ca6e7

Issue Description:

Paste this into an iOS project:

@objc extension UIView {
    func test(ok:Bool = false) {
        print("test")
    }
}

Now pause at a breakpoint in `viewDidLoad` and talk to lldb in the console. You can say `e self.view.test(ok:true)`, but if you say `e self.view.test()` you get an error: "Couldn't lookup symbols: default argument 0". That seems like a bug.

@belkadan
Copy link

@dcci, I think there's a Radar for this too?

@dcci
Copy link
Mannequin

dcci mannequin commented Jul 23, 2019

@compnerd had a WIP patch to fix this.

@dcci
Copy link
Mannequin

dcci mannequin commented Jul 23, 2019

And yes, I think there's a rdar (or at least a SR to duplicate this to). Let me find it.

@mattneub
Copy link
Author

Thanks, I did look for a duplicate but feel free to close if I just missed it.

@dcci
Copy link
Mannequin

dcci mannequin commented Jul 25, 2019

Duplicate of https://bugs.swift.org/browse/SR-10994

@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
Projects
None yet
Development

No branches or pull requests

2 participants