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-14609] Could not access self inside generic class functions #4311

Open
swift-ci opened this issue May 7, 2021 · 1 comment
Open

[SR-14609] Could not access self inside generic class functions #4311

swift-ci opened this issue May 7, 2021 · 1 comment
Labels
bug Something isn't working LLDB for Swift

Comments

@swift-ci
Copy link

swift-ci commented May 7, 2021

Previous ID SR-14609
Radar rdar://problem/77673453
Original Reporter iqqator (JIRA User)
Type Bug
Environment

Apple MacBook Pro M1

macOS BigSur 11.3.1 (20E241)

Xcode 12.5 (12E262) non Rosetta mode

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

md5: 5a95bc0d0f7df1aa5194b9d1e1a8961c

Issue Description:

Is it bug or a feature ?)

final class Generic<T> {
    func doSomething() {
        print("something") 
        
        // there is `po self` returns
        // expression produced error: error: Couldn't realize type of self. 
        // Try evaluating the expression with -d run-target
        // But `po print(self)` returns Generic<Swift.String>
        // and frame variable shows
        // (Generic<String>) self = 0x00006000007a0890 {}
    }
}

final class Normal {
    let example = Generic<String>()
    func doSomething() {
        example.doSomething() 

        // there is `po self` returns <Normal 0xAddr>
    }
}
@typesanitizer
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

2 participants