"Fossies" - the Fresh Open Source Software Archive

Member "ldc-1.9.0-src/tests/d2/dmd-testsuite/fail_compilation/imports/a11919.d" (30 Apr 2018, 319 Bytes) of package /linux/misc/ldc-1.9.0-src.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) D source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 void doBar(T)(T t)
    2 {
    3     static if (t.tupleof.length)
    4         if (zoo!t.length == 0) {}
    5     static if (is(T B == super)
    6             && is(B[0] == class)
    7             && is(B[])
    8             )
    9     {
   10         B[0] b = t;
   11         doBar(b);
   12     }
   13 }
   14 template zoo(alias t)
   15 {
   16     enum zoo = __traits(getAttributes, t.tupleof);
   17 }