[Issue 17408] New: scope and in are considered redundant
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu May 18 05:36:20 PDT 2017
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 at puremagic.com
Reporter: mathias.lang at 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.
--
More information about the Digitalmars-d-bugs
mailing list