[Issue 6031] New: Incorrect parsing of !in when dot operator involved
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed May 18 12:36:49 PDT 2011
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: nobody at puremagic.com
ReportedBy: dsimcha at yahoo.com
--- Comment #0 from David Simcha <dsimcha at yahoo.com> 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: -------
More information about the Digitalmars-d-bugs
mailing list