mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
Reword dmd.auto-ref-adjacent.dd (#16786)
This commit is contained in:
parent
90c4145a81
commit
97b71f1c2a
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
`auto ref` variables must have adjacent keywords `auto` and `ref`
|
Keywords `auto` and `ref` must be adjacent
|
||||||
|
|
||||||
It's now deprecated to declare `auto ref` parameters without putting those two keywords next to eachother.
|
It's now deprecated to declare `auto ref` parameters without putting those two keywords next to each other.
|
||||||
This way it's clear that `auto ref` semantics are intended, rather than `ref` and `auto` semantics separately.
|
This way it's clear that `auto ref` semantics are intended, rather than `ref` and `auto` semantics separately.
|
||||||
For the newly introduced `ref` local / global variables, it's an error immediately.
|
For the newly introduced `ref` local / global variables, it's an error immediately.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue