[Issue 6417] Wrong context for nested functions in virtual class member function contracts

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Feb 19 07:50:26 PST 2014


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


Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |verylonglogin.reg at gmail.com
            Summary|Wrong context pointer for   |Wrong context for nested
                   |delegates inside contracts  |functions in virtual class
                   |of class member functions   |member function contracts


--- Comment #3 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2014-02-19 19:50:12 MSK ---
This is for virtual class member functions only, reduced testcase:
---
final class C
{
    void f()
    in // or `out`
    {
        int i = 7;
        void g() { assert(i == 7); }
        g();
    }
    body
    { }
}

void main()
{
    new C().f();
}
---

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


More information about the Digitalmars-d-bugs mailing list