This repository was archived by the owner on Jul 12, 2022. It is now read-only.
Commit 028e8ba
committed
Disable the using location rule by default
Moving a using from inside a namespace to outside it is a fundamentally dangerous
operation. In part because it changes the context of the lookup:
- Outside the namespace only the other usings are considered
- Inside the namespace the namespace + the usings are considered
This makes it trivial to create an error by moving a using directive around.
Instead of continuing to patch this rule I've decided to just disable it by
default for now. We can revisit and make it safer later on but for now it
takes too much work to fix this.1 parent 98df38a commit 028e8ba
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments