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
[cxx-interop] Allow import-as-member for functions declared within a namespace
This makes it possible to use trigger import-as-member for C++ functions declared within namespaces. Previously only functions declared at the file level were supported.
rdar://138930205
_ =deepNestedStruct_method(s) // expected-error {{'deepNestedStruct_method' has been replaced by instance method 'MyNS.MyDeepNS.DeepNestedStruct.method()'}}
19
21
}
22
+
23
+
MyNS.method() // expected-error {{type 'MyNS' has no member 'method'}}
24
+
MyNS.nestedMethod() // expected-error {{type 'MyNS' has no member 'nestedMethod'}}
0 commit comments