|
8 | 8 | // * Whether X::foo finds foos in X's re-exports |
9 | 9 | // * Whether we handle access paths correctly |
10 | 10 | // * Interaction with ClangImporter |
11 | | -// * Cross-import overlays |
12 | 11 | // * Key path dynamic member lookup |
13 | 12 | // * Custom type attributes (and coverage of type attrs generally is sparse) |
14 | 13 | // |
@@ -107,7 +106,6 @@ extension B: @retroactive main::Equatable { |
107 | 106 | (main::+) |
108 | 107 | // expected-error@-1 {{'+' is not imported through module 'main'}} |
109 | 108 | // expected-note@-2 {{did you mean module 'Swift'?}} {{8-12=Swift}} |
110 | | - // expected-note@-3 {{did you mean module '_Concurrency'?}} {{8-12=_Concurrency}} FIXME: Accept and suggest 'Swift::' instead? |
111 | 109 |
|
112 | 110 | let magnitude: Int.main::Magnitude = main::magnitude |
113 | 111 | // expected-error@-1 {{'Magnitude' is not imported through module 'main'}} |
@@ -195,7 +193,6 @@ extension C: @retroactive ModuleSelectorTestingKit::Equatable { |
195 | 193 | (ModuleSelectorTestingKit::+) |
196 | 194 | // expected-error@-1 {{'+' is not imported through module 'ModuleSelectorTestingKit'}} |
197 | 195 | // expected-note@-2 {{did you mean module 'Swift'?}} {{8-32=Swift}} |
198 | | - // expected-note@-3 {{did you mean module '_Concurrency'?}} {{8-32=_Concurrency}} FIXME: Accept and suggest 'Swift::' instead? |
199 | 196 |
|
200 | 197 | let magnitude: Int.ModuleSelectorTestingKit::Magnitude = ModuleSelectorTestingKit::magnitude |
201 | 198 | // expected-error@-1 {{'Magnitude' is not imported through module 'ModuleSelectorTestingKit'}} |
@@ -417,3 +414,17 @@ func badModuleNames() { |
417 | 414 | func builtinModuleLookups(_ int: Builtin::Int64) -> Builtin::Int64 { |
418 | 415 | return Builtin::int_bswap_Int64(int) |
419 | 416 | } |
| 417 | + |
| 418 | +func concurrencyModuleLookups( |
| 419 | + _: any Swift::Clock, |
| 420 | + _: any _Concurrency::Clock, |
| 421 | + _: any ModuleSelectorTestingKit::Clock |
| 422 | + // expected-error@-1 {{'Clock' is not imported through module 'ModuleSelectorTestingKit'}} |
| 423 | + // expected-note@-2 {{did you mean module 'Swift'?}} {{10-34=Swift}} |
| 424 | +) async { |
| 425 | + await Swift::withTaskCancellationHandler {} onCancel: {} |
| 426 | + await _Concurrency::withTaskCancellationHandler {} onCancel: {} |
| 427 | + await ModuleSelectorTestingKit::withTaskCancellationHandler {} onCancel: {} |
| 428 | + // expected-error@-1 {{'withTaskCancellationHandler' is not imported through module 'ModuleSelectorTestingKit'}} |
| 429 | + // expected-note@-2 {{did you mean module 'Swift'?}} {{9-33=Swift}} |
| 430 | +} |
0 commit comments