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

--- Comment #11 from [email protected] ---
Which of the following cases should/shouldn't be valid?

Case 1:

int[string] aa;
char[] key;
aa[key] = 1;

Case 2:

int[string] aa;
char[] key;
if (aa[key] == 1) { ... }
auto p = key in aa;


It seems to me that we should allow case 2, but prohibit case 1.

--

Reply via email to