[Issue 3345] Static and nonstatic methods with the same name should	be allowed
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Tue Aug 30 07:38:38 PDT 2011
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=3345
David Simcha <dsimcha at yahoo.com> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dsimcha at yahoo.com
--- Comment #1 from David Simcha <dsimcha at yahoo.com> 2011-08-30 07:38:34 PDT ---
What should be the semantics if there's **only** a static method and no
nonstatic method, i.e.:
class Widget {
    static int fun() { return 2; }
}
void main() {
    // Does this print 2 or not compile?
    writeln((new Widget).fun()); 
}
-- 
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