Skip to content

Grammar to suppress implicit protocol conformance is missing #387

@jansorg

Description

@jansorg

Location

https://docs.swift.org/swift-book/documentation/the-swift-programming-language/summaryofthegrammar

Description

As far as I can tell, the syntax for suppression of protocol conformance is missing:

struct FileDescriptor: ~Copyable {
    let rawValue: Int
}

The use of the ~ suppression is not defined by the grammar.

Correction

It should mention the grammar to match what's declared valid syntax at https://docs.swift.org/swift-book/documentation/the-swift-programming-language/protocols/#Implicit-Conformance-to-a-Protocol

I couldn't find the proposal for this syntax.

rdar://160794592

Metadata

Metadata

Assignees

Labels

Content issueA problem in with the book's prose, code, or figures

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions