mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 05:00:16 +03:00
15 lines
454 B
D
15 lines
454 B
D
// REQUIRED_ARGS: -o-
|
|
// https://issues.dlang.org/show_bug.cgi?id=24055
|
|
// is(x == __parameters) does not work on function pointer/delegate types
|
|
|
|
void function(int) fp;
|
|
void delegate(int) dg;
|
|
|
|
static assert(is(typeof(fp) == __parameters));
|
|
static assert(is(typeof(*fp) == __parameters));
|
|
static assert(is(typeof(dg) == __parameters));
|
|
|
|
static if(is(typeof(dg) FP == delegate))
|
|
static assert(is(FP == __parameters)); // OK
|
|
else
|
|
static assert(0);
|