[Issue 2700] typeof tests stops compilation abruptly

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Mar 28 22:19:03 PDT 2009


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





------- Comment #1 from unknown at simplemachines.org  2009-03-29 00:19 -------
Created an attachment (id=297)
 --> (http://d.puremagic.com/issues/attachment.cgi?id=297&action=view)
Pass loc to error().

The issue was simple actually; an unattached function was calling error() with
no loc param.

This patch adds the loc param.  When the error message is supposed to be shown,
the location will now be (properly) added.  There are other situations when
this message is shown (afaict.)

Please note: because of the semantics of is(), the error message showing at all
WAS an error.  Since the is expression would've generated an error (which is
not printed), it means it should return false.  So, with this patch, the code
compiles fine (rejects-valid.)

-[Unknown]


-- 



More information about the Digitalmars-d-bugs mailing list