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-5453] Trying to define a KeyPath to a static property through a type's Type crashes compiler #48025

Closed
jepers opened this issue Jul 14, 2017 · 4 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software run-time crash Bug → crash: Swift code crashed during execution

Comments

@jepers
Copy link

jepers commented Jul 14, 2017

Previous ID SR-5453
Radar rdar://problem/33318422
Original Reporter @jepers
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, CompilerCrash, RunTimeCrash
Assignee @jepers
Priority Medium

md5: 7235289d816eed05fc7e3f6c311f6879

cloned to:

  • SR-5458 Should not code complete members of 'S.Type'

Issue Description:

struct S { static let a = 1 }
let kp = \S.Type.a // Invalid code, yes, but `a` comes up as a completion to `S.Type.` so …
dump(kp)
// Xcode 9 beta 3
// Default toolchain: Compiles and crashes at runtime.
// Development Snapshot 2017-07-12: Crashes compiler.
@belkadan
Copy link
Contributor

cc @jckarter

@jckarter
Copy link
Member

@swift-ci create

@jckarter
Copy link
Member

PR for master: #11061
PR for 4.0: #11062

@jckarter
Copy link
Member

Merged to swift-4.0-branch as 6749efb. Fix should show up in future snapshots.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the crash Bug: A crash, i.e., an abnormal termination of software label Oct 22, 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. compiler The Swift compiler in itself crash Bug: A crash, i.e., an abnormal termination of software run-time crash Bug → crash: Swift code crashed during execution
Projects
None yet
Development

No branches or pull requests

4 participants