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


[email protected] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]


--- Comment #1 from [email protected] 2014-01-14 12:59:17 PST ---
Related:


void foo(const int[] a) {
    int bar() pure {
        return a[0];
    }
}
void main() {}


DMD 2.065alpha gives (also note the duplicated error message):

test1.d(3): Error: pure nested function 'bar' cannot access mutable data 'a'
test1.d(3): Error: pure nested function 'bar' cannot access mutable data 'a'

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

Reply via email to