http://d.puremagic.com/issues/show_bug.cgi?id=9808
Summary: with statement does not work with opDispatch
Product: D
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Robert Clipsham <[email protected]> 2013-03-24
13:33:12 GMT ---
The with statement does not appear to take opDispatch into account:
----
struct Foo {
string[string] strs;
void opDispatch(string s, T)(T t) {}
}
void main()
{
Foo f;
f.check(1);
with(f) {
check(2);
}
}
-----
test.d(11): Error: undefined identifier check
Using dmd 2.062.
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------