swift
ec028235 - Sema: Fix incorrect diagnostic when referencing members of a @_versioned protocol

Commit
8 years ago
Sema: Fix incorrect diagnostic when referencing members of a @_versioned protocol Protocol members can be directly referenced from protocol extensions and generic functions. Since protocol members do not have accessibility distinct from the protocol itself, ignore them, since they won't carry the @_versioned attribute. While workign on this I uncovered an interesting bug where we allow members of protocol extensions to be more accessible than the protocol itself, but then we give the symbols hidden visibility at the SIL level anyway. I filed <https://bugs.swift.org/browse/SR-3684> to track this issue.
Author
Committer
Parents
Loading