http://d.puremagic.com/issues/show_bug.cgi?id=6031
Summary: Incorrect parsing of !in when dot operator involved
Product: D
Version: D2
Platform: Other
OS/Version: Windows
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from David Simcha <[email protected]> 2011-05-18 12:32:41 PDT ---
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 !
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------