import std.stdio; float f() { return 3.14f; } int f() { return 10; } void main() { int i = f(); float f = f(); writeln(i); writeln(f); }
Standard input is empty
prog.d(8): Error: function prog.f called with argument types: (()) matches both: prog.f() and: prog.f() prog.d(8): Error: cannot implicitly convert expression (f()) of type float to int prog.d(9): Error: function prog.f called with argument types: (()) matches both: prog.f() and: prog.f()
Standard output is empty