May 18, 2017 [Issue 17408] New: scope and in are considered redundant | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=17408 Issue ID: 17408 Summary: scope and in are considered redundant Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: mathias.lang@sociomantic.com ``` void foo (in scope char[]) {} ``` Result in: test.d(1): Error: redundant attribute 'scope' The other way around (scope in) results in an error message mentioning `in` as redundant as well. Before `in` used to mean `const scope`, but nowadays it only means `const`, so the two aren't redundant. -- |
Copyright © 1999-2021 by the D Language Foundation