http://d.puremagic.com/issues/show_bug.cgi?id=6872
Summary: Breaking type parsing of shared(inout(int)[]) Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: k.hara...@gmail.com --- Comment #0 from Kenji Hara <k.hara...@gmail.com> 2011-11-01 04:59:19 PDT --- Code: inout(int) func(shared(inout(int)[]) arr){ return 0; } Output: test.d(1): Error: inout on return means inout must be on a parameter as well for inout(int)(shared(shared(const(int))[]) arr) The shared(inout(int)[]) type is parsed as shared(shared(const(int))[]), it is incorrect. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------