Commit fc2021d
committed
chore: alias n4e's clashing driver constructor instead of qualifying it
The formatter and the compiler want opposite things here. With N4E present the bare
INetworkStreamDriverConstructor binds to N4E's copy in the shared Unity.Netcode root, which the
enclosing namespace reaches before the using directive, and the class then fails to implement it.
With N4E absent - which is what the standards job's editor resolves - any qualification is redundant
and IDE0001 strips it back off, so the last two attempts each traded one failure for the other.
A file-scope using alias satisfies both. Its target cannot be shortened, since at file scope there is
no enclosing namespace to shorten it against; the use site is a single identifier with no qualified
form; and IDE0005 cannot drop the alias because removing it stops the name resolving at all.1 parent 45db9fc commit fc2021d
1 file changed
Lines changed: 5 additions & 3 deletions
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
234 | | - | |
235 | | - | |
236 | | - | |
| 238 | + | |
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
| |||
0 commit comments