Commit Graph

2 Commits

Author SHA1 Message Date
Ding Ye
0f493a68b3 [Sema] Improve diagnostics for access level of protocol witness in extension. (#22235)
If the access level of a protocol witness does not satisfies a requirement,
the compiler suggests marking it as the required level.  This is not suitable
when the witness is in an extension whose specified access level is less than
the required level, since the fixit fights with other warnings in this case.
This patch identifies such case and produces improved diagnostics.

Resolves: SR-9793
2019-02-08 09:31:01 -08:00
Jordan Rose
f1856b8f47 Honor !EnableAccessControl when checking protocol witnesses
Useful in the LLDB REPL, and also for what I'm about to do to the
integrated REPL.
2018-09-22 13:47:16 -07:00