[Issue 9127] New: Error on getting `stringof` on field with body-less interface type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Dec 9 00:40:29 PST 2012


http://d.puremagic.com/issues/show_bug.cgi?id=9127

           Summary: Error on getting `stringof` on field with body-less
                    interface type
           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> 2012-12-09 11:40:27 MSK ---
---
interface I;
struct S { I a; }
enum e = S.tupleof[0].stringof; // line 3
---

Output:
---
main.d(3): Error: function expected before (), not "module main"c of type
string
---

-- 
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