[Issue 3905] Wrong error message with wrong opBinary("in")
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 4 22:47:35 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=3905
Steven Schveighoffer <schveiguy at yahoo.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |schveiguy at yahoo.com
Resolution|WONTFIX |
--- Comment #4 from Steven Schveighoffer <schveiguy at yahoo.com> 2010-12-04 22:46:00 PST ---
I agree that the proposed patch is not better. But the original message is
invalid. This is a bug that needs to be fixed, regardless of whether you like
the given proposals.
Point in fact, in *can* work on types besides associative arrays.
I tried this:
struct S {}
void main()
{
S s;
auto t = s + s;
}
And got:
Error: incompatible types for ((s) + (s)): 'S' and 'S'
So extrapolating to in, the error should look like:
Error: incompatible types for ((3) in (Group(1, 2))): 'int' and 'Group'
Although, I'm unsure why there are so many parentheses...
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list