1 // REQUIRED_ARGS: -o-
2 // PERMUTE_ARGS:
3 
4 class Foo
5 {
foo()6     void foo()
7     {
8         foreach (f; __traits(getOverloads, typeof(this), "bar"))
9         {
10             auto dg = &f;
11         }
12 
13         foreach (f; __traits(getVirtualMethods, typeof(this), "bar"))
14         {
15             auto dg = &f;
16         }
17 
18         foreach (f; __traits(getVirtualFunctions, typeof(this), "bar"))
19         {
20             auto dg = &f;
21         }
22     }
23 
bar()24     uint bar() { return 0; }
25 }
26