Commit 9544834
committed
Avoid
```
$ echo "@preconcurrency import var Foundation.stderr" | swiftly run +main-snapshot-2026-08-11 swiftc - -o /dev/null
<stdin>:1:28: error: ambiguous name 'stderr' in module 'Foundation'
1 | @preconcurrency import var Foundation.stderr
| `- error: ambiguous name 'stderr' in module 'Foundation'
2 |
Glibc.stderr:1:32: note: found this candidate
1 | nonisolated(unsafe) public var stderr: UnsafeMutablePointer<FILE>! { get }
| `- note: found this candidate
/usr/include/stdio.h:151:14: note: found this candidate
149 | extern FILE *stdin; /* Standard input stream. */
150 | extern FILE *stdout; /* Standard output stream. */
151 | extern FILE *stderr; /* Standard error output stream. */
| `- note: found this candidate
152 | /* C89/C99 say they're macros. Make them happy. */
153 | #define stdin stdin
```
swiftlang/swift#89891import var Foundation.stderr
1 parent 9b9828e commit 9544834
2 files changed
Lines changed: 22 additions & 2 deletions
File tree
- Plugins
- BridgeJS/Sources/BridgeJSTool
- PackageToJS/Sources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
18 | 28 | | |
19 | 29 | | |
20 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
12 | 22 | | |
13 | 23 | | |
14 | 24 | | |
| |||
0 commit comments