"Fossies" - the Fresh Open Source Software Archive

Member "ldc-1.7.0-src/tests/d2/dmd-testsuite/runnable/imports/a21a.d" (5 Jan 2018, 207 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.a21a;
    2 
    3 import std.stdio;
    4 import a21;
    5 
    6 template GoodMixin()
    7 {
    8     int goodFunc()
    9     {
   10     printf("goodFunc\n");
   11     return 1;
   12     }
   13 }
   14 
   15 
   16 class SomeClass
   17 {
   18     mixin GoodMixin;
   19     mixin BadMixin;
   20 }
   21