Skip to content

Commit

Permalink
Add link to new ref item
Browse files Browse the repository at this point in the history
  • Loading branch information
ntrel authored and thewilsonator committed Oct 25, 2024
1 parent d6149fd commit 74a18b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion changelog/dmd.auto-ref-adjacent.dd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Keywords `auto` and `ref` must be adjacent

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.
For the newly introduced `ref` local / global variables, it's an error immediately.
For the newly introduced $(RELATIVE_LINK2 dmd.reflocal, `ref` local / global variables), it's an error immediately.

---
void t()(ref const auto int x) // Deprecation
Expand Down

0 comments on commit 74a18b0

Please sign in to comment.