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


[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]


--- Comment #15 from [email protected] 2013-03-02 05:31:13 PST ---
(In reply to comment #2)

> Workaround:
> 
> assert(0 < typeof(i[0]).max);

This is acceptable.


This program:

struct Foo {
    int i[1];
    static void bar() {
        assert(0 < i[0].max);
    }
}


Currently gives:

temp.d(4): Error: need 'this' for i type int[1u].


But is it possible for the error message to suggest your solution to fix the
error?

temp.d(4): Error: need 'this' for i type int[1]. Use typeof(i[0]).max instead

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to