mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
20 lines
339 B
D
20 lines
339 B
D
// REQUIRED_ARGS: -o-
|
|
// PERMUTE_ARGS:
|
|
|
|
class Foo
|
|
{
|
|
void foo()
|
|
{
|
|
foreach (f; __traits(getOverloads, typeof(this), "bar"))
|
|
{
|
|
auto dg = &f;
|
|
}
|
|
|
|
foreach (f; __traits(getVirtualMethods, typeof(this), "bar"))
|
|
{
|
|
auto dg = &f;
|
|
}
|
|
}
|
|
|
|
uint bar() { return 0; }
|
|
}
|