"Fossies" - the Fresh Open Source Software Archive

Member "ldc-1.9.0-src/tests/d2/dmd-testsuite/fail_compilation/imports/a13131checkpoint.d" (30 Apr 2018, 569 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 module imports.a13131checkpoint;
    2 
    3 mixin(createGlobalsMixins);             // [3] mixin
    4 
    5 auto createGlobalsMixins()              // [4] semantic3
    6 {
    7     pragma(msg, "+A");
    8     enum fullModuleName = "imports.a13131parameters";  // necessary
    9     mixin("import "~fullModuleName~";");
   10     foreach (e ; __traits(derivedMembers, mixin(fullModuleName)))
   11     {
   12         // [5] see imports.parameters (it's listed in command line)
   13         static if ( __traits(compiles, mixin(`__traits(getAttributes, `~fullModuleName~`.`~e~`)`))) {}
   14     }
   15     pragma(msg, "-A");
   16 
   17     return "";
   18 }