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: nob...@puremagic.com
          Reporter: mathias.l...@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.

--

Reply via email to