|
1 | 1 | // RUN: %target-typecheck-verify-swift -sdk %clang-importer-sdk -module-name main -I %S/Inputs -enable-experimental-module-selector
|
2 | 2 |
|
3 |
| -// FIXME: This only works with ASTScopes, and we might not care about that by the time this feature is ready. |
4 |
| -// RUN-DISABLED: %target-typecheck-verify-swift -sdk %clang-importer-sdk -module-name main -I %S/Inputs -enable-experimental-module-selector -disable-astscope-lookup |
5 |
| - |
6 | 3 | // Make sure the lack of the experimental flag disables the feature:
|
7 | 4 | // RUN: not %target-typecheck-verify-swift -sdk %clang-importer-sdk -module-name main -I %S/Inputs 2>/dev/null
|
8 | 5 |
|
|
11 | 8 | // * Whether X::foo finds foos in X's re-exports
|
12 | 9 | // * Whether we handle access paths correctly
|
13 | 10 | // * Interaction with ClangImporter
|
14 |
| -// * Cross-module overlays, when those happen |
| 11 | +// * Cross-import overlays |
15 | 12 | //
|
16 | 13 | // It also might not cover all combinations of name lookup paths and inputs.
|
17 | 14 |
|
@@ -265,37 +262,37 @@ func builderUser4(@Swift::MyBuilder fn: () -> Void) {}
|
265 | 262 |
|
266 | 263 | func whitespace() {
|
267 | 264 | Swift::print
|
268 |
| - // expected-error@-1 {{expression resolves to an unused function}} |
| 265 | + // expected-error@-1 {{function is unused}} |
269 | 266 |
|
270 | 267 | Swift:: print
|
271 |
| - // expected-error@-1 {{expression resolves to an unused function}} |
| 268 | + // expected-error@-1 {{function is unused}} |
272 | 269 |
|
273 | 270 | Swift ::print
|
274 |
| - // expected-error@-1 {{expression resolves to an unused function}} |
| 271 | + // expected-error@-1 {{function is unused}} |
275 | 272 |
|
276 | 273 | Swift :: print
|
277 |
| - // expected-error@-1 {{expression resolves to an unused function}} |
| 274 | + // expected-error@-1 {{function is unused}} |
278 | 275 |
|
279 | 276 | Swift::
|
280 | 277 | print
|
281 |
| - // expected-error@-1 {{expression resolves to an unused function}} |
| 278 | + // expected-error@-1 {{function is unused}} |
282 | 279 |
|
283 | 280 | Swift
|
284 | 281 | ::print
|
285 |
| - // expected-error@-1 {{expression resolves to an unused function}} |
| 282 | + // expected-error@-1 {{function is unused}} |
286 | 283 |
|
287 | 284 | Swift ::
|
288 | 285 | print
|
289 |
| - // expected-error@-1 {{expression resolves to an unused function}} |
| 286 | + // expected-error@-1 {{function is unused}} |
290 | 287 |
|
291 | 288 | Swift
|
292 | 289 | :: print
|
293 |
| - // expected-error@-1 {{expression resolves to an unused function}} |
| 290 | + // expected-error@-1 {{function is unused}} |
294 | 291 |
|
295 | 292 | Swift
|
296 | 293 | ::
|
297 | 294 | print
|
298 |
| - // expected-error@-1 {{expression resolves to an unused function}} |
| 295 | + // expected-error@-1 {{function is unused}} |
299 | 296 | }
|
300 | 297 |
|
301 | 298 | // Error cases
|
@@ -471,5 +468,5 @@ func badModuleNames() {
|
471 | 468 | // expected-error@-1 {{cannot find type 'NonexistentModule::MyType' in scope}}
|
472 | 469 |
|
473 | 470 | let y: A.NonexistentModule::MyChildType = fatalError()
|
474 |
| - // expected-error@-1 {{'NonexistentModule::MyChildType' is not a member type of 'A'}} |
| 471 | + // expected-error@-1 {{'NonexistentModule::MyChildType' is not a member type of struct 'ModuleSelectorTestingKit.A'}} |
475 | 472 | }
|
0 commit comments