aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/issue19925.d
blob: aed1688adeea0b36d1dfabd4875b2e7d868a650e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// REQUIRED_ARGS: -unittest
module issue19925;

unittest {
    with (S) {
        a(); // Compiles!
        b(); // Fails!
    }
}

struct S {
    static void a() {}
    static void opDispatch(string name)() {}
}