May 28, 2015 [Issue 14626] New: [REG2.066] byValue doesn't work with inout AA | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14626 Issue ID: 14626 Summary: [REG2.066] byValue doesn't work with inout AA Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: rejects-valid Severity: regression Priority: P1 Component: druntime Assignee: nobody@puremagic.com Reporter: thecybershadow@gmail.com ///////////// test.d ///////////// struct S { string[string] aa; inout(string) m() inout { return aa.byValue().front; } } ////////////////////////////////// C:\...\druntime\object.d(1906): Error: inout on return means inout must be on a parameter as well for @property ref Value() test.d(7): Error: template instance object.byValue!(inout(string[string]), inout(string), string) error instantiating Introduced in: https://github.com/D-Programming-Language/dmd/pull/2856 https://github.com/D-Programming-Language/druntime/pull/668 -- |
Copyright © 1999-2021 by the D Language Foundation