[Issue 13001] New: Support VRE for ternary operator (CondExp)
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Fri Jun 27 20:47:27 PDT 2014
    
    
  
https://issues.dlang.org/show_bug.cgi?id=13001
          Issue ID: 13001
           Summary: Support VRE for ternary operator (CondExp)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: DMD
          Assignee: nobody at puremagic.com
          Reporter: lio+bugzilla at lunesu.com
void main(string[] args)
{
  byte b;
  foreach (const i; 0..args.length?2:3)
    b = i;
}
test/runnable/testcondrange.d(5): Error: cannot implicitly convert expression
(i) of type const(int) to byte
Expected: no error
--
    
    
More information about the Digitalmars-d-bugs
mailing list