mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When we look up a name directly, make sure we provide a scope, this is required when C++ interop is enabled. This issue was exposed when we look up if an NSString is hashable. There is a special case for classes that inherit from NSObject, but we didn't see that, because we couldn't find NSObject (because lookup failed).
9 lines
276 B
Objective-C
9 lines
276 B
Objective-C
#ifndef TEST_INTEROP_CXX_CLASS_INPUTS_DESTRUCTORS_H
|
|
#define TEST_INTEROP_CXX_CLASS_INPUTS_DESTRUCTORS_H
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
void takesDictionaryOfStrings(NSDictionary<NSString*, NSString*>*_Nonnull a) { }
|
|
|
|
#endif // TEST_INTEROP_CXX_CLASS_INPUTS_DESTRUCTORS_H
|