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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 4 10:55:48 PST 2013


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-02-04 10:55:47 PST ---
This is true for any forward declaration:

interface I;
struct S;
class C;
enum ei = I.stringof;
enum es = S.stringof;
enum ec = C.stringof;

test.d(3): Error: interface test.I is forward referenced when looking for
'stringof'
test.d(7): Error: struct S is forward referenced
test.d(5): Error: class test.C is forward referenced when looking for
'stringof'

Note that Walter has stated before that .stringof is allowed to be overriden by
the user, so this might have to be closed as invalid.

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