https://d.puremagic.com/issues/show_bug.cgi?id=12420
--- Comment #3 from Denis Shelomovskij <[email protected]> 2014-03-30 12:27:43 MSK --- (In reply to comment #1) > I agree with the conclusion, the reason in my thought is: > > `new char[1]` makes unique data and have no foreign reference, so it can be > implicitly convertible to immutable(char[]). Therefore directly using it in > the > index part of the AA element setting will be allowed. Looks like you misunderstood me. The word `immutable` shouldn't be here, it's just an incorrect error message. Currently we have no rules disallowing non-`immutable` associative array keys. I filed Issue 12491 for this. This issue will be auto-fixed if Issue 2954 will be fixed by applying a correct check to ensure key expression can be implicitly converted to AA key type in case of setting AA value. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
