[Issue 11503] Type system breaking caused by implicit conversion for the value returned from pure function
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Nov 11 23:31:47 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11503
yebblies <yebblies at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |yebblies at gmail.com
--- Comment #1 from yebblies <yebblies at gmail.com> 2013-11-12 18:31:46 EST ---
Simpler example:
import std.stdio;
immutable int[] x = [1, 2, 3];
auto makes() pure
{
return x;
}
void main()
{
auto a = x;
int[] b = makes();
writefln("%s %s", a.ptr, b.ptr);
}
--
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