..or vice versa.
Reported by kenji in the pull request for bug 8257.
https://github.com/D-Programming-Language/dmd/pull/1194
-----
struct S8257 {
void g(int n){} // before the static one
static int g() { return 6; }
}
void main() {
auto k = &(func()).g;
pragma(msg, typeof(k)); // prints void delegate(int n)
}
It always chooses the first function declaration.
Comment #1 by smjg — 2012-11-04T16:23:54Z
What is 'func'? The code shouldn't compile as written.
Otherwise, this looks like a case of issue 52 that the fix doesn't cover.