Bug 6031 – Incorrect parsing of !in when dot operator involved
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-05-18T12:32:00Z
Last change time
2011-05-18T13:50:25Z
Keywords
rejects-valid
Assigned to
nobody
Creator
dsimcha
Comments
Comment #0 by dsimcha — 2011-05-18T12:32:41Z
Using the !in operator doesn't work when the variable being tested is accessed via the . operator.
struct Struct {
string str;
}
void main() {
string[string] aa;
Struct s;
if(s.str !in aa) {}
}
test.d(8): template argument expected following !
Comment #1 by kennytm — 2011-05-18T13:50:25Z
*** This issue has been marked as a duplicate of issue 5785 ***