"Fossies" - the Fresh Open Source Software Archive

Member "ldc-1.7.0-src/tests/d2/dmd-testsuite/runnable/imports/a12874.d" (5 Jan 2018, 159 Bytes) of package /linux/misc/ldc-1.7.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.a12874;
    2 
    3 template foo(alias x)
    4 {
    5     void check(int[] arr)
    6     {
    7         auto n = arr[0];
    8     }
    9     void foo()
   10     {
   11         check([]);
   12     }
   13 }