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
pragma(msg, ParameterIdentifierTuple!foo); // prints "b"
void main() {
foo(5);
}
Ambigious parameter names should trigger an error, as per spec they _are_ part of the public API.
Also if you imagine foo beeing declared in two seperate modules i suspect import oder would change the behaviour of ParameterIdentifierTuple.
If D gets named parameters this will probably also matter.
The text was updated successfully, but these errors were encountered:
puremagic (@Zoadian) reported this on 2020-02-11T18:30:04Z
Transfered from https://issues.dlang.org/show_bug.cgi?id=20574
CC List
Description
import std.stdio;
import std.traits;
void foo(int b);
void foo(int a);
void foo(int a) {
writeln(a);
}
pragma(msg, ParameterIdentifierTuple!foo); // prints "b"
void main() {
foo(5);
}
The text was updated successfully, but these errors were encountered: