https://issues.dlang.org/show_bug.cgi?id=16181
Walter Bright <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |[email protected] Resolution|--- |INVALID --- Comment #3 from Walter Bright <[email protected]> --- The default argument is treated as an argument. While both functions match, then the "least as specialized" rule is applied: foo(a) can call foo(int a, int b = 2) foo(a, 2) cannot call foo(int a) Therefore, foo(int a) is selected. Not a bug. --
