You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privatefunc publicReq(){} // expected-error {{method 'publicReq()' must have public access because it matches a requirement in public protocol 'PublicProto'}} {{3-10=public}}
19
-
privatefunc internalReq(){} // expected-error {{method 'internalReq()' must have internal access because it matches a requirement in internal protocol 'InternalProto'}} {{3-10=internal}}
18
+
privatefunc publicReq(){} // expected-error {{method 'publicReq()' must be declared public because it matches a requirement in public protocol 'PublicProto'}} {{3-10=public}}
19
+
privatefunc internalReq(){} // expected-error {{method 'internalReq()' must be declared internal because it matches a requirement in internal protocol 'InternalProto'}} {{3-10=internal}}
privatefunc publicReq(){} // expected-error {{method 'publicReq()' must be as accessible as its enclosing type because it matches a requirement in protocol 'PublicProto'}} {{3-10=internal}}
26
-
privatefunc internalReq(){} // expected-error {{method 'internalReq()' must have internal access because it matches a requirement in internal protocol 'InternalProto'}} {{3-10=internal}}
26
+
privatefunc internalReq(){} // expected-error {{method 'internalReq()' must be declared internal because it matches a requirement in internal protocol 'InternalProto'}} {{3-10=internal}}
func publicReq(){} // expected-error {{method 'publicReq()' must have public access because it matches a requirement in public protocol 'PublicProto'}} {{3-3=public }}
38
+
func publicReq(){} // expected-error {{method 'publicReq()' must be declared public because it matches a requirement in public protocol 'PublicProto'}} {{3-3=public }}
privatevarsize=0 // expected-error {{property 'size' must have internal access because it matches a requirement in internal protocol 'InternalMutationOperations'}}
250
-
private subscript (Int)->Int{ // expected-error {{subscript must have internal access because it matches a requirement in internal protocol 'InternalMutationOperations'}}
249
+
privatevarsize=0 // expected-error {{property 'size' must be declared internal because it matches a requirement in internal protocol 'InternalMutationOperations'}}
250
+
private subscript (Int)->Int{ // expected-error {{subscript must be declared internal because it matches a requirement in internal protocol 'InternalMutationOperations'}}
// Please don't change the formatting here; it's a precise fix-it test.
258
-
publicprivate(set)varsize=0 // expected-error {{setter for property 'size' must have internal access because it matches a requirement in internal protocol 'InternalMutationOperations'}} {{10-17=internal}}
259
-
internalprivate(set) subscript (Int)->Int{ // expected-error {{subscript setter must have internal access because it matches a requirement in internal protocol 'InternalMutationOperations'}} {{12-25=}}
258
+
publicprivate(set)varsize=0 // expected-error {{setter for property 'size' must be declared internal because it matches a requirement in internal protocol 'InternalMutationOperations'}} {{10-17=internal}}
259
+
internalprivate(set) subscript (Int)->Int{ // expected-error {{subscript setter must be declared internal because it matches a requirement in internal protocol 'InternalMutationOperations'}} {{12-25=}}
0 commit comments