[Issue 6233] Compiler lists wrong module in an expression error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 3 09:32:18 PDT 2011


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


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |major


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-08-03 09:32:16 PDT ---
Simplified test case:

foo.d:
import bar;

void main()
{
    return TRUE;
}

bar.d:
enum TRUE = 1;

$ rdmd foo.d:
bar.d(1): Error: long has no effect in expression (1)

I'm raising the priority because it's extremely infuriating getting an error
message that points to a completely different module, making this bug hard to
track.

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