[Issue 11966] New: Regression 2.065.b1: inout(const(char))[] doesn't convert to inout(char)[]
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 22 03:55:14 PST 2014
https://d.puremagic.com/issues/show_bug.cgi?id=11966
Summary: Regression 2.065.b1: inout(const(char))[] doesn't
convert to inout(char)[]
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: regression
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: doob at me.com
--- Comment #0 from Jacob Carlborg <doob at me.com> 2014-01-22 03:55:12 PST ---
The following code used to work with 2.064.2:
inout(char)[] stripped (inout(char)[] path)
{
return path;
}
struct PathParser
{
inout(const(char))[] pop () inout
{
return stripped (path);
}
inout(const(char))[] path () inout
{
return null;
}
}
void main ()
{
auto a = PathParser().pop;
}
With 2.065.b1 it results in this error:
Error: function main.stripped (inout(char)[] path) is not callable using
argument types (inout(const(char))[])
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list