mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Features like `@testable import` change the results produced by name lookup in the source file with the testable import. What they /shouldn't/ do is change the results of lookup into the same module from elsewhere in the import graph...and neither should cached results from lookup elsewhere in the import graph affect the lookups from the source file. Encode this difference in the cache used during module-level name lookup to fix testable imports like this. (The test case here looks a little contrived because of '@_exported', but that's how imports are treated in Clang modules and with bridging headers, so it is in fact a realistic scenario.) rdar://problem/48890959
12 KiB
12 KiB