[Issue 18252] New: no property 'tupleof' for type 'string[int]'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Jan 17 10:18:22 UTC 2018


https://issues.dlang.org/show_bug.cgi?id=18252

          Issue ID: 18252
           Summary: no property 'tupleof' for type 'string[int]'
           Product: D
           Version: D2
          Hardware: x86
                OS: All
            Status: NEW
          Severity: critical
          Priority: P1
         Component: phobos
          Assignee: nobody at puremagic.com
          Reporter: bitworld at qq.com

Tow arrays of associative array can't be compared.

Compiler: DMD 2.078

Error message:

D:\Dlang\dmd2\windows\bin\..\..\src\druntime\import\object.d(3461,31): Error:
no property 'tupleof' for type 'string[int]'
D:\Dlang\dmd2\windows\bin\..\..\src\druntime\import\object.d(3461,53): Error:
no property 'tupleof' for type 'string[int]'
source\app.d(11,6): Error: template instance object.__equals!(string[int],
string[int]) error instantiating
dmd failed with exit code 1.


=====Test code======

import std.stdio;
import std.algorithm;

void main()
{
        bool r;

        string[int][] aa1;
        string[int][] aa2;
        // r = __equals!(string[int], string[int])(aa1, aa2); // bug
        r = aa1 == aa2; // bug
        // r = equal(aa1, aa2); // ok
}

--


More information about the Digitalmars-d-bugs mailing list