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

[AA] unable to compare const associative array with mutable #17684

Open
dlangBugzillaToGithub opened this issue Oct 16, 2014 · 0 comments
Open
Labels
Druntime:AA Specific to Associative Arrays P3 Severity:normal

Comments

@dlangBugzillaToGithub
Copy link

Igor Stepanov reported this on 2014-10-16T21:54:24Z

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

Description

void main() 
{
    int[int] aa1 = [1:2];
    const int[int] aa2 = aa1;
    assert(aa1 == aa2);
}

This code causes a error: 
Error: incompatible types for ((aa1) == (aa2)): 'int[int]' and 'const(int[int])'
@thewilsonator thewilsonator added the Druntime:AA Specific to Associative Arrays label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Druntime:AA Specific to Associative Arrays P3 Severity:normal
Projects
None yet
Development

No branches or pull requests

2 participants