mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
13 lines
293 B
D
13 lines
293 B
D
/* TEST_OUTPUT:
|
|
---
|
|
fail_compilation/test20919.d(12): Error: `__traits(getAttributes, int a)` does not give a valid type
|
|
---
|
|
*/
|
|
// https://issues.dlang.org/show_bug.cgi?id=20919
|
|
|
|
void foo(int a) {}
|
|
|
|
static if (is(typeof(foo) params == __parameters))
|
|
{
|
|
__traits(getAttributes, params) a;
|
|
}
|