Repository navigation
Commit 6f6895a
committed
fix(runner): place synthesized-context #if at line start
`synthesizedCoordinateContext` opened its body with `{#if os(iOS)`, so the
conditional-compilation scanner used by check:xctest-selection skipped the
inline `#if` yet still saw the `#else`, reporting "#else without a matching
#if". swiftc -parse and the runner test build already accepted the inline
form; moving `{` and `#if os(iOS)` onto separate lines keeps the directive at
line start, matching every other guard in the file, and unblocks the gate.
Refs #27241 parent afbb6cc commit 6f6895a
1 file changed
Lines changed: 2 additions & 1 deletion
File tree
- apple/runner/AgentDeviceRunner/AgentDeviceRunnerUITests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
| 381 | + | |
381 | 382 | | |
382 | 383 | | |
383 | 384 | | |
| |||
0 commit comments