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
// expected-member-visibility-note 15{{add import of module 'members_B'}}{{1-1=internal import members_B\n}}
10
+
// expected-member-visibility-note 16{{add import of module 'members_B'}}{{1-1=internal import members_B\n}}
11
11
12
12
13
13
func testExtensionMembers(x:X, y:Y<Z>){
@@ -93,3 +93,9 @@ class DerivedFromClassInC: DerivedClassInC {
93
93
}
94
94
95
95
structConformsToProtocolInA:ProtocolInA{} // expected-member-visibility-error{{type 'ConformsToProtocolInA' does not conform to protocol 'ProtocolInA'}} expected-member-visibility-note {{add stubs for conformance}}
96
+
97
+
func testDerivedMethodAccess(){
98
+
DerivedClassInC().methodInC()
99
+
DerivedClassInC().methodInB() // expected-member-visibility-error{{instance method 'methodInB()' is not available due to missing import of defining module 'members_B'}}
0 commit comments