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


Don <clugd...@yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |rejects-valid
                 CC|                            |clugd...@yahoo.com.au
            Summary|opBinaryRight for "in"      |opBinary, opBinaryRight
                   |doesn't work right          |don't do implicit
                   |                            |conversion properly


--- Comment #2 from Don <clugd...@yahoo.com.au> 2010-09-30 01:48:40 PDT ---
(In reply to comment #1)
> Further evidence, this compiles:
> 
> void main()
> {
>     S s;
>     s.opBinaryRight!"in"(5);
> }

This is not specific to "in". The code below fails to compile, but it works if
you change "short" to "int".

struct S
{
    void opBinary(string op)(short x) 
    {}
}

void main()
{
    S s;
    s + 5;
}

Original title for this bug was:
opBinaryRight for "in" doesn't work right

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

Reply via email to