Commit d3c7005
committed
Warn about async-imported selector conflicts
The change in #59479 inadvertently fixed another bug in selector conflict checking: Swift did not notice when an ObjC header declared an async-imported method, but a Swift extension to the same class added another method with the same selector. Unfortunately, fixing this bug was source-breaking, and it also caused Swift to diagnose spurious conflicts between the various names that a single ObjC method might be imported with. Soften the error to a warning in Swift 5 mode and suppress the spurious diagnostics.
Fixes rdar://95887113.1 parent 4f1180d commit d3c7005
File tree
3 files changed
+38
-3
lines changed- lib/Sema
- test/Concurrency
- Inputs
3 files changed
+38
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2257 | 2257 | | |
2258 | 2258 | | |
2259 | 2259 | | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
| 2264 | + | |
| 2265 | + | |
2260 | 2266 | | |
2261 | 2267 | | |
2262 | 2268 | | |
| |||
2506 | 2512 | | |
2507 | 2513 | | |
2508 | 2514 | | |
| 2515 | + | |
| 2516 | + | |
| 2517 | + | |
| 2518 | + | |
2509 | 2519 | | |
2510 | 2520 | | |
2511 | 2521 | | |
| |||
2534 | 2544 | | |
2535 | 2545 | | |
2536 | 2546 | | |
| 2547 | + | |
| 2548 | + | |
| 2549 | + | |
| 2550 | + | |
| 2551 | + | |
| 2552 | + | |
| 2553 | + | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
2537 | 2561 | | |
2538 | 2562 | | |
2539 | 2563 | | |
2540 | 2564 | | |
2541 | 2565 | | |
2542 | 2566 | | |
2543 | 2567 | | |
2544 | | - | |
2545 | | - | |
2546 | | - | |
| 2568 | + | |
2547 | 2569 | | |
2548 | 2570 | | |
2549 | 2571 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
24 | 30 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
0 commit comments