[Issue 11794] Compilation fails with a certain selective import
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 21 15:55:33 PST 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11794
--- Comment #1 from nick at wabbo.org 2013-12-21 15:55:30 PST ---
I apologize, the code I pasted is somewhat confusing. There should be a blank
line after the imports and before the main() declaration, so that the error
message is referring to the "auto x = std.conv.to!double("7.3");" line.
import std.stdio;
import std.conv : to;
void main() {
auto x = std.conv.to!double("7.3");
writeln(x - 2.2);
}
--
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