Files
swift-mirror/test/Interop/Cxx/class/Inputs/dictionary-of-nsstrings.h
zoecarver 5db8647911 [cxx-interop] Make sure to use TUScope when looking up clang decls.
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).
2022-03-17 16:26:57 -07:00

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