|
13 | 13 | import Foo
|
14 | 14 | import Bar
|
15 | 15 |
|
16 |
| -#if canImport(Bar, version: 113.331) // expected-warning {{cannot find user version number for Swift module 'Bar'; version number ignored}} |
| 16 | +#if canImport(Bar, _version: 113.331) // expected-warning {{cannot find user version number for Swift module 'Bar'; version number ignored}} |
17 | 17 | #endif
|
18 | 18 |
|
19 |
| -#if canImport(Bar, version: 2) // expected-warning {{cannot find user version number for Swift module 'Bar'; version number ignored}} |
| 19 | +#if canImport(Bar, _version: 2) // expected-warning {{cannot find user version number for Swift module 'Bar'; version number ignored}} |
20 | 20 | #endif
|
21 | 21 |
|
22 | 22 | func canImportVersioned() {
|
23 |
| -#if canImport(Foo, version: 113.331) |
| 23 | +#if canImport(Foo, _version: 113.331) |
24 | 24 | let a = 1
|
25 | 25 | #endif
|
26 | 26 |
|
27 |
| -#if canImport(Foo, version: 113.3000) |
| 27 | +#if canImport(Foo, _version: 113.3000) |
28 | 28 | let b = 1
|
29 | 29 | #endif
|
30 | 30 |
|
31 |
| -#if canImport(Foo, version: 114) |
| 31 | +#if canImport(Foo, _version: 114) |
32 | 32 | let c = 1
|
33 | 33 | #endif
|
34 | 34 |
|
35 |
| -#if canImport(Foo, version: 4) |
| 35 | +#if canImport(Foo, _version: 4) |
36 | 36 | let d = 1 // expected-warning {{initialization of immutable value 'd' was never used; consider replacing with assignment to '_' or removing it}}
|
37 | 37 | #endif
|
38 | 38 |
|
39 |
| -#if canImport(Foo, version: 113.33) |
| 39 | +#if canImport(Foo, _version: 113.33) |
40 | 40 | let e = 1 // expected-warning {{initialization of immutable value 'e' was never used; consider replacing with assignment to '_' or removing it}}
|
41 | 41 | #endif
|
42 | 42 |
|
43 |
| -#if canImport(Foo, underlyingVersion: 113.33) |
| 43 | +#if canImport(Foo, _underlyingVersion: 113.33) |
44 | 44 | let ee = 1
|
45 | 45 | #endif
|
46 | 46 |
|
47 |
| -#if canImport(Foo, version: 113.329) |
| 47 | +#if canImport(Foo, _version: 113.329) |
48 | 48 | let f = 1 // expected-warning {{initialization of immutable value 'f' was never used; consider replacing with assignment to '_' or removing it}}
|
49 | 49 | #endif
|
50 | 50 |
|
51 |
| -#if canImport(Foo, version: 113.330) |
| 51 | +#if canImport(Foo, _version: 113.330) |
52 | 52 | let g = 1 // expected-warning {{initialization of immutable value 'g' was never used; consider replacing with assignment to '_' or removing it}}
|
53 | 53 | #endif
|
54 | 54 |
|
|
0 commit comments