The below writes "uint". Is this working as intended? https://run.dlang.io/is/Dx2e7f
--- import std.stdio; auto foo(T = uint)(uint x) { return T.stringof; } auto foo(T = ulong)(ulong x) { return T.stringof; } void main() { writeln(foo(10L)); } ---
Nathan S. via Digitalmars-d-learn Tue, 04 Sep 2018 19:36:02 -0700
The below writes "uint". Is this working as intended? https://run.dlang.io/is/Dx2e7f
--- import std.stdio; auto foo(T = uint)(uint x) { return T.stringof; } auto foo(T = ulong)(ulong x) { return T.stringof; } void main() { writeln(foo(10L)); } ---