Replace the class_protocol attribute with a "class" requirement.

This only tackles the protocol case (<rdar://problem/17510790>); it
does not yet generalize to an arbitrary "class" requirement on either
existentials or generics.

Swift SVN r19896
This commit is contained in:
Doug Gregor
2014-07-13 06:57:48 +00:00
parent fd2c4ddf4a
commit a5c079af59
71 changed files with 306 additions and 197 deletions

View File

@@ -26,7 +26,7 @@ import SwiftShims
/// when T isBridgedToObjectiveC, it can be used directly as an
/// NSArray. It is safe to convert between NSArray and _CocoaArrayType via
/// reinterpretCast.
@class_protocol @unsafe_no_objc_tagged_pointer @objc public
@unsafe_no_objc_tagged_pointer @objc public
protocol _CocoaArrayType {
func objectAtIndex(index: Int) -> AnyObject