[Issue 3905] Wrong error message with wrong opBinary("in")

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Sep 30 01:37:27 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=3905


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic, patch
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #1 from Don <clugdbug at yahoo.com.au> 2010-09-30 01:37:09 PDT ---
PATCH:
expression.c, line 10624, InExp::semantic()


        default:
-            error("rvalue of in expression must be an associative array, not
%s", e2->type->toChars());
+            error("%s has no opBinaryRight(\"in\") operator and %s has no
opBinary(\"in\") operator", e1->type->toChars(), e2->type->toChars());
        case Terror:
            return new ErrorExp();
    }

-- 
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