Commit Graph

1 Commits

Author SHA1 Message Date
Slava Pestov
0d92918f5b Sema: Check access control in 'where' clauses of protocols and associated types
We weren't checking this before, which would let you define a
public protocol that no public type could conform to.

This is a source-breaking change, so stage it in with a warning.
It becomes an error in -swift-version 5 mode.
2018-06-15 13:23:58 -07:00