[Issue 10521] Struct wrong constructor chosen.
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Jul  1 10:16:47 PDT 2013
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=10521
--- Comment #1 from Damian <damianday at hotmail.co.uk> 2013-07-01 10:16:46 PDT ---
This is a correct test case, ignore the previous one.
Anyway tested now with Git Head and the issue has been resolved! Hooray :)
struct Test
{
    enum DefaultSize = 256;
    int size;
    this(int sz = DefaultSize )
    {
        size = sz;
    }
    ~this()
    {
        assert(size == DefaultSize);
    }
}
public class ClassA
{
    private Test st_test;
    public this()
    {
        st_test = Test(256);
    }
}
void main()
{
    auto cl = new ClassA;
}
-- 
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