Bug or logic error in if with auto?
js.mdnq
js_adddot+mdng at gmail.com
Sun Dec 2 07:09:16 PST 2012
Can this be made to work in D?
Error in D, x not found:
if (auto x = "thing" in arr && x == 45)
{
}
Works:
if (auto x = "thing" in arr)
if (x == 45)
{
}
More information about the Digitalmars-d
mailing list