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-14497] [HAS REPRODUCER] Assertion failed: (T->mayHaveMembers()) #56852

Closed
ahoppen opened this issue Apr 16, 2021 · 2 comments
Closed

[SR-14497] [HAS REPRODUCER] Assertion failed: (T->mayHaveMembers()) #56852

ahoppen opened this issue Apr 16, 2021 · 2 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. found by stress tester Flag: An issue found by the SourceKit stress tester

Comments

@ahoppen
Copy link
Contributor

ahoppen commented Apr 16, 2021

Previous ID SR-14497
Radar rdar://problem/76750555
Original Reporter @ahoppen
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug, FoundByStressTester
Assignee @ahoppen
Priority Medium

md5: aedc0364f11763189a74044446644c1a

Issue Description:

$ cat ~/Desktop/test.swift
public protocol IP {
    init(networkBytes: Int)
}

public struct HostRecord<IPType: IP> {}

extension HostRecord {
    init() {
        let ipType = IPType(networkBytes: 42)
    }
}
$ ./sourcekitd-test -req=cursor -pos=9:22 ~/Desktop/test.swift -- ~/Desktop/test.swift

{
  key.request: source.request.configuration.global,
  key.optimize_for_ide: 1
}
{
  key.request: source.request.cursorinfo,
  key.compilerargs: [
    "/Users/alex/Desktop/test.swift"
  ],
  key.offset: 150,
  key.sourcefile: "/Users/alex/Desktop/test.swift"
}
Assertion failed: (T->mayHaveMembers()), function TypeTransformContext, file /Users/alex/swift-src/swift/lib/AST/ASTPrinter.cpp, line 271.
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
@ahoppen
Copy link
Contributor Author

ahoppen commented Apr 16, 2021

@swift-ci Create

@ahoppen
Copy link
Contributor Author

ahoppen commented Apr 27, 2021

#36989

@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. found by stress tester Flag: An issue found by the SourceKit stress tester
Projects
None yet
Development

No branches or pull requests

1 participant