fork download
  1. template ReturnType(func...)
  2. if (func.length == 1 && isCallable!(func))
  3. {
  4. static if (is(FunctionTypeOf!(func) R == return))
  5. alias R ReturnType;
  6. else
  7. static assert(0, "argument has no return type");
  8. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../libphobos2.a(dmain2_2d2_1a5.o): In function `_D2rt6dmain24mainUiPPaZi7runMainMFZv':
src/rt/dmain2.d:(.text._D2rt6dmain24mainUiPPaZi7runMainMFZv+0x10): undefined reference to `_Dmain'
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../libphobos2.a(deh2_2a9_525.o): In function `_D2rt4deh213__eh_finddataFPvZPS2rt4deh213DHandlerTable':
src/rt/deh2.d:(.text._D2rt4deh213__eh_finddataFPvZPS2rt4deh213DHandlerTable+0x4): undefined reference to `_deh_beg'
src/rt/deh2.d:(.text._D2rt4deh213__eh_finddataFPvZPS2rt4deh213DHandlerTable+0xc): undefined reference to `_deh_beg'
src/rt/deh2.d:(.text._D2rt4deh213__eh_finddataFPvZPS2rt4deh213DHandlerTable+0x13): undefined reference to `_deh_end'
src/rt/deh2.d:(.text._D2rt4deh213__eh_finddataFPvZPS2rt4deh213DHandlerTable+0x37): undefined reference to `_deh_end'
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../libphobos2.a(thread_78_258.o): In function `_D4core6thread6Thread6__ctorMFZC4core6thread6Thread':
src/core/thread.d:(.text._D4core6thread6Thread6__ctorMFZC4core6thread6Thread+0x1d): undefined reference to `_tlsend'
src/core/thread.d:(.text._D4core6thread6Thread6__ctorMFZC4core6thread6Thread+0x24): undefined reference to `_tlsstart'
/usr/lib/gcc/i686-pc-linux-gnu/4.3.4/../../../libphobos2.a(thread_75_713.o): In function `thread_entryPoint':
src/core/thread.d:(.text.thread_entryPoint+0x4e): undefined reference to `_tlsstart'
src/core/thread.d:(.text.thread_entryPoint+0x57): undefined reference to `_tlsend'
collect2: ld returned 1 exit status
--- errorlevel 1
stdout
Standard output is empty