[Issue 9815] New: Error on using `tupleof` with field access expression in parantheses
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Mar 25 23:43:10 PDT 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9815
Summary: Error on using `tupleof` with field access expression
in parantheses
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Keywords: rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: verylonglogin.reg at gmail.com
--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2013-03-26 09:43:10 MSK ---
---
struct S { int i; }
struct S1 { S s; }
void f(int) { }
void main()
{
S1 s1;
f(s1.s.tupleof); // OK
f((s1.s).tupleof); // Error: need 'this' to access member s
}
---
--
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