https://d.puremagic.com/issues/show_bug.cgi?id=12346



--- Comment #2 from Mike <[email protected]> 2014-03-11 04:55:40 PDT ---
Last post had an error in the code.  Use this instead.

/********** test.d ***************/
module test;

class TestClass
{
    private this() {}

    uint value;
}



/************ main.d **************/
void main()
{
    test.TestClass x; // <---  This should result in a compile-time error
    x.value = 10;     // <---  Runtime error. 
}

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

Reply via email to