[Issue 17607] not an associative array initializer
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Dec 2 15:51:40 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=17607
Steven Schveighoffer <schveiguy at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |schveiguy at gmail.com
--- Comment #6 from Steven Schveighoffer <schveiguy at gmail.com> ---
Just ran into this. Note the problem has nothing to do with structs:
```d
int[char][char] arr = ['A' : ['B': 0]] ; // error
int[char][char] arr = (['A' : ['B': 0]]); // ok
```
Does anyone have an actual explanation of why this is happening? It looks like
an AA initializer to me.
--
More information about the Digitalmars-d-bugs
mailing list