Quantcast
Channel: LLDB - Swift Forums
Viewing all articles
Browse latest Browse all 40

Lldb: Unable to bind generic parameters in context with weakly captured self

$
0
0

Hello,

I have opened an issue regarding LLDB, see lldb: Unable to bind generic parameters in context with weakly captured self · Issue #9194 · swiftlang/llvm-project · GitHub .

TL;DR:
If you capture weakly a generic class, lldb is not able to bind generic variables, for example:

final class Bridge<T> {
    var current: T
    init(c: T) { current = c }
    func foo() {
        Task { [weak self] in
            print(self?.current) // HERE!
        }
    } 
}

Do you happen to know about any workaround, or whether the issue was already fixed? I have tested the issue on Xcode 15.4.

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 40

Trending Articles