You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How SDC works for following codes?
auto foo(T u, T)() {
return typeof(u).stringof;
}
pragma(msg, foo(1)); // T is deduced to int ... it's reasonable.
pragma(msg, foo(1, int)); // typeof(1) is int by default, so it might be accepted
pragma(msg, foo(1, long)); // typeof(u) will be long, or conflict happens?
pragma(msg, foo(1, double)); // typeof(u) will be double, or conflict happens?
pragma(msg, foo(1, string)); // definitely conflicts
Shammah Chancellor reported this on 2015-03-28T16:50:15Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=14359
CC List
Description
The text was updated successfully, but these errors were encountered: