[Issue 13681] New: @safe empty writeln
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Nov 4 02:48:16 PST 2014
https://issues.dlang.org/show_bug.cgi?id=13681
Issue ID: 13681
Summary: @safe empty writeln
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: enhancement
Priority: P1
Component: Phobos
Assignee: nobody at puremagic.com
Reporter: bearophile_hugs at eml.cc
void main() @safe {
import std.stdio: writeln;
writeln;
}
dmd 2.067alpha gives:
test.d(3,5): Error: safe function 'D main' cannot call system function
'std.stdio.writeln!().writeln'
Note that this compiles:
void main() @safe {
import std.stdio: write;
write('\n');
}
--
More information about the Digitalmars-d-bugs
mailing list