[Issue 16199] Looking up string-keyed AA with char[n] compiles but crashes at runtime

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 9 15:09:45 UTC 2022


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

RazvanN <razvan.nitu1305 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305 at gmail.com

--- Comment #3 from RazvanN <razvan.nitu1305 at gmail.com> ---
Hi!

I cannot reproduce the behavior described in the original bug report.

If I compile the code, I get:

test.d(15): Error: cannot implicitly convert expression `key` of type `char[4]`
to `string`

Which is for the first `in` expression. If I test for key.idup then everything
works just fine.

Should we close this issue?

--


More information about the Digitalmars-d-bugs mailing list