File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -510,6 +510,21 @@ static void recordShadowedDeclsAfterTypeMatch(
510
510
}
511
511
}
512
512
513
+ // Next, prefer any other module over the _Concurrency module.
514
+ if (auto concurModule = ctx.getLoadedModule (ctx.Id_Concurrency )) {
515
+ if ((firstModule == concurModule) != (secondModule == concurModule)) {
516
+ // If second module is _Concurrency, then it is shadowed by first.
517
+ if (secondModule == concurModule) {
518
+ shadowed.insert (secondDecl);
519
+ continue ;
520
+ }
521
+
522
+ // Otherwise, the first declaration is shadowed by the second.
523
+ shadowed.insert (firstDecl);
524
+ break ;
525
+ }
526
+ }
527
+
513
528
// The Foundation overlay introduced Data.withUnsafeBytes, which is
514
529
// treated as being ambiguous with SwiftNIO's Data.withUnsafeBytes
515
530
// extension. Apply a special-case name shadowing rule to use the
You can’t perform that action at this time.
0 commit comments