| 1 |
// https://issues.dlang.org/show_bug.cgi?id=15414 |
| 2 |
|
| 3 |
// REQUIRED_ARGS: -de |
| 4 |
|
| 5 |
/* |
| 6 |
TEST_OUTPUT: |
| 7 |
--- |
| 8 |
fail_compilation/fail15414.d(20): Deprecation: `__traits(getAttributes)` may only be used for individual functions, not the overload set `fun` |
| 9 |
fail_compilation/fail15414.d(20): the result of `__traits(getOverloads)` may be used to select the desired function to extract attributes from |
| 10 |
--- |
| 11 |
*/ |
| 12 |
|
| 13 |
@("gigi") |
| 14 |
void fun() {} |
| 15 |
@("mimi") |
| 16 |
void fun(int) {} |
| 17 |
|
| 18 |
void main() |
| 19 |
{ |
| 20 |
auto t = __traits(getAttributes, fun); |
| 21 |
} |