digitalmars.D.bugs - [Issue 11958] New: when casting a string to it's representation dmd deduces a wrong inout return type
- d-bugmail puremagic.com (26/26) Jan 21 2014 https://d.puremagic.com/issues/show_bug.cgi?id=11958
- d-bugmail puremagic.com (13/13) Jan 21 2014 https://d.puremagic.com/issues/show_bug.cgi?id=11958
- d-bugmail puremagic.com (7/10) Jan 21 2014 https://d.puremagic.com/issues/show_bug.cgi?id=11958
- d-bugmail puremagic.com (7/13) Jan 21 2014 https://d.puremagic.com/issues/show_bug.cgi?id=11958
https://d.puremagic.com/issues/show_bug.cgi?id=11958 Summary: when casting a string to it's representation dmd deduces a wrong inout return type Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: code dawg.eu cat > bug.d << CODE inout(ubyte)[] rep(inout(char)[] str) { return cast(inout(ubyte)[])str; } auto foo = rep("foo"c); CODE dmd -c bug ---- rep.d(2): Error: cannot implicitly convert expression ("foo"c) of type inout(ubyte)[] to immutable(ubyte)[] ---- -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 21 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11958 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |CTFE, rejects-valid Status|NEW |RESOLVED Resolution| |DUPLICATE Already fixed in git-head (2.065a) *** This issue has been marked as a duplicate of issue 11534 *** -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 21 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11958Already fixed in git-head (2.065a) *** This issue has been marked as a duplicate of issue 11534 ***Sorry for the noise, I used the wrong dmd binary :). -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jan 21 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11958Don't worry. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------Already fixed in git-head (2.065a) *** This issue has been marked as a duplicate of issue 11534 ***Sorry for the noise, I used the wrong dmd binary :).
Jan 21 2014