Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A dup-ped associative array can't be assigned to immutable #18925

Closed
dlangBugzillaToGithub opened this issue Dec 27, 2014 · 1 comment
Closed

Comments

@dlangBugzillaToGithub
Copy link

bearophile_hugs reported this on 2014-12-27T22:32:15Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=13900

Description

void main() {
    int[int] aa1 = [1:2];
    immutable aa2 = aa1.dup;
}


dmd 2.067alpha gives:

temp.d(3,24): Error: cannot implicitly convert expression (dup(aa1)) of type int[int] to immutable(int[int])
@thewilsonator
Copy link
Contributor

reopening as #20564

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants