"Fossies" - the Fresh Open Source Software Archive

Member "ldc-1.10.0-src/tests/d2/dmd-testsuite/fail_compilation/imports/a15667.d" (19 Jun 2018, 292 Bytes) of package /linux/misc/ldc-1.10.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 module imports.a15667;
    2 
    3 template staticIndexOf(T)
    4 {
    5     enum staticIndexOf = genericIndexOf!T;
    6 }
    7 
    8 template genericIndexOf(args...)
    9 {
   10     alias e     = args;
   11     alias tuple = args;
   12     alias tail = tuple;
   13     enum next  = genericIndexOf!(e, tail);
   14 }
   15 
   16 alias X = ;
   17 
   18 static if (staticIndexOf!X)