D Paste by Suprano
Description: None
|
1 2 3 4 5 6 7 8 9 10 11 12 13 | module embarassing; class C {} interface I {} struct S {} alias int delegate() D; alias int function() F; static assert(is(C == class)); // ok static assert(is(I == interface)); // ok static assert(is(S == struct)); // ok static assert(is(D == delegate)); // ok static assert(is(F == function)); // Error: static assert (is(int function() == function)) is false |