[Issue 435] Constructors should be templatized
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Oct 25 11:40:48 PDT 2010
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=435
--- Comment #4 from Shin Fujishiro <rsinfu at gmail.com> 2010-10-25 11:39:57 PDT ---
Created an attachment (id=794)
Patch against dmd trunk r727, for D2
This is a D2 enhancement patch.  Passed dmd/druntime/phobos tests and testcases
in the reports.
class.c:  Just added isTemplateDeclaration() to an if condition.  It makes the
ClassDeclaration recognize constructor templates as its constructors.
expression.c:  Changed toParent() to isThis().  toParent() doesn't check
through template instances and misunderstands that constructor is not declared
inside a class or struct.  isThis() (or toParent2) takes care of such cases.
-- 
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