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-6482] ASTPrinter prints unexpected where clauses and shorthand dictionary form #49032

Open
DevAndArtist mannequin opened this issue Nov 28, 2017 · 1 comment
Open
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior.

Comments

@DevAndArtist
Copy link
Mannequin

DevAndArtist mannequin commented Nov 28, 2017

Previous ID SR-6482
Radar None
Original Reporter @DevAndArtist
Type Bug
Environment

Xcode Version 9.1 (9B55)

Additional Detail from JIRA
Votes 0
Component/s Source Tooling
Labels Bug
Assignee None
Priority Medium

md5: c5118ca1f9be6b80cd9cf4ed09d9d58f

Issue Description:

How to reproduce the issue:

  • In Xcode 9.1 type `Dictionary`

  • CMD + Click on the type

  • Jump to Definition

  • Search for `extension Dictionary :` or `extension [`

Current result:

// All extensions that conform the type to a protocol prints the `where` clause
extension Dictionary : Decodable where Key : Hashable

// Unexpected shorthand form
// This probably comes from `extension ${Self}.Index` from the `HashableCollections.swift.gyb` file
extension [Key : Value].Index where Key : Hashable

Expected result:

extension Dictionary : Decodable
extension Dictionary.Index
@belkadan
Copy link
Contributor

cc @nathawes

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
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.
Projects
None yet
Development

No branches or pull requests

1 participant