mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
19 lines
234 B
D
19 lines
234 B
D
@__future int foo()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int bar()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
@__future int c;
|
|
|
|
|
|
void main()
|
|
{
|
|
static assert(__traits(isFuture, foo));
|
|
static assert(!__traits(isFuture, bar));
|
|
static assert(__traits(isFuture, c));
|
|
}
|