[Issue 12093] bad error message: Error: no [] operator overload for type Tuple!(string, string)
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Feb 7 01:15:10 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12093
Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |andrej.mitrovich at gmail.com
--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2014-02-07 01:15:08 PST ---
Reduced:
-----
struct S(T...)
{
T x;
alias x this;
}
void main()
{
S!(int) s;
auto x = s[0];
auto x = s[1]; // Error: no [] operator overload for type S!int
}
-----
--
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