Commit Graph

2 Commits

Author SHA1 Message Date
Jordan Rose
1c1aed747a Add some tests for @testable and subclassing.
Inspired by the previous commit. These are things we expect to keep
working.
2016-09-06 17:13:04 -07:00
Jordan Rose
c6a79209f7 Allow @testable witnesses to satisfy protocol requirements.
That is, if a would-be witness to a protocol requirement is only
accessible because its module has been imported with '@testable',
consider that "good enough" to satisfy the rule that a witness
must be available everywhere the protocol and conforming type are
both available (because those other contexts /could/ have done their
own testable import).

rdar://problem/28173654
2016-09-06 17:10:28 -07:00