Reword dmd.auto-ref-adjacent.dd (#16786)

This commit is contained in:
Quirin F. Schroll 2024-08-25 02:43:53 +02:00 committed by GitHub
parent 90c4145a81
commit 97b71f1c2a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.