"Fossies" - the Fresh Open Source Software Archive

Member "dmd-2.089.1/test/fail_compilation/gag4269a.d" (14 Dec 2019, 195 Bytes) of package /linux/misc/dmd-2.089.1.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 // REQUIRED_ARGS: -c -o-
    2 /*
    3 TEST_OUTPUT:
    4 ---
    5 fail_compilation/gag4269a.d(12): Error: undefined identifier `B`
    6 ---
    7 */
    8 
    9 static if(is(typeof(A4269.sizeof))) {}
   10 class A4269
   11 {
   12     void foo(B b);
   13 }