https://d.puremagic.com/issues/show_bug.cgi?id=11773
Summary: `inout` `function`/`delegate` should be implicitly convertible to mutable/`const`/`immutable` 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: verylonglogin....@gmail.com --- Comment #0 from Denis Shelomovskij <verylonglogin....@gmail.com> 2013-12-19 18:46:10 MSK --- This code should compile: --- void main() { inout(int*) function(inout int*) funcInout; int* function(int*) funcM = funcInout; // Error: cannot implicitly convert const(int*) function(const int*) funcC = funcInout; // same error immutable(int*) function(immutable int*) funcI = funcInout; // same error inout(int*) delegate(inout int*) delInout; int* delegate(int*) delM = delInout; // same error const(int*) delegate(const int*) delC = delInout; // same error immutable(int*) delegate(immutable int*) delI = delInout; // same error } --- -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------