File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -2913,9 +2913,6 @@ class GenericTypeParamDecl : public AbstractTypeParamDecl {
2913
2913
// / func getNext() -> Element?
2914
2914
// / }
2915
2915
// / \endcode
2916
- // /
2917
- // / Every protocol has an implicitly-created associated type 'Self' that
2918
- // / describes a type that conforms to the protocol.
2919
2916
class AssociatedTypeDecl : public AbstractTypeParamDecl {
2920
2917
// / The location of the initial keyword.
2921
2918
SourceLoc KeywordLoc;
@@ -3875,6 +3872,14 @@ struct SelfReferenceKind {
3875
3872
// / protocol Drawable {
3876
3873
// / func draw()
3877
3874
// / }
3875
+ // /
3876
+ // / Every protocol has an implicitly-created 'Self' generic parameter that
3877
+ // / stands for a type that conforms to the protocol. For example,
3878
+ // /
3879
+ // / protocol Cloneable {
3880
+ // / func clone() -> Self
3881
+ // / }
3882
+ // /
3878
3883
class ProtocolDecl final : public NominalTypeDecl {
3879
3884
SourceLoc ProtocolLoc;
3880
3885
You can’t perform that action at this time.
0 commit comments