www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3134] New: Conflicting Class Names Permitted From Imported File

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

           Summary: Conflicting Class Names Permitted From Imported File
           Product: D
           Version: 1.043
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: cbkbbejeap mailinator.com


This compiles but should not:

--------------------
module main;
import inc;

class Foo {}
void main()
{
    auto f = new Foo();
}
--------------------
module inc;
class Foo {}
--------------------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 03 2009