[Issue 12093] New: bad error message: Error: no [] operator overload for type Tuple!(string, string)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Feb 6 18:43:34 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12093

           Summary: bad error message: Error: no [] operator overload for
                    type Tuple!(string, string)
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: timothee.cour2 at gmail.com


--- Comment #0 from Timothee Cour <timothee.cour2 at gmail.com> 2014-02-06 18:43:32 PST ---
void main(){
  import std.algorithm;
  auto a="".findSplitBefore(" ");
  auto b0=a[0]; // OK
  auto b1=a[2]; // Error: no [] operator overload for type Tuple!(string,
string)
}

should be: out of bound error

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


More information about the Digitalmars-d-bugs mailing list