[Issue 6936] type combination is not commutative
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Jul 18 19:17:22 PDT 2014
    
    
  
https://issues.dlang.org/show_bug.cgi?id=6936
Jonathan M Davis <jmdavisProg at gmx.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com
--- Comment #2 from Jonathan M Davis <jmdavisProg at gmx.com> ---
(In reply to hsteoh from comment #1)
> Isn't this more a problem with type inference in the ternary '?' operator?
Yes. The ternary operator currently, incorrectly uses the type of its last
argument rather than the common type of the second and third arguments.
It's essentially the same bug as issue# 3543, but this is with arrays, whereas
3543 specifically talks about classes and interfaces, so I'm not sure if it's
actually a duplicate.
--
    
    
More information about the Digitalmars-d-bugs
mailing list