[Issue 17138] Warn about superfluous "with" statements

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat May 13 08:54:47 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=17138

--- Comment #3 from Walter Bright <bugzilla at digitalmars.com> ---
Are you suggesting:

---
struct S {
    int field;
}

void foo(S s) {
    with (s)      // no error
        ++field;

    with (s)      // error
        ++s.field;
}
---

?

--


More information about the Digitalmars-d-bugs mailing list