"Fossies" - the Fresh Open Source Software Archive

Member "ldc-1.7.0-src/tests/d2/dmd-testsuite/fail_compilation/imports/a13131parameters.d" (5 Jan 2018, 557 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.a13131parameters;
    2 
    3 auto createParameterMixins()    // auto is necessary to invoke semantic3 to calculate full signature
    4 {
    5     pragma(msg, "+B");
    6     enum fullModuleName = "imports.a13131elec";  // necessary
    7     mixin("import "~fullModuleName~";");
    8     foreach (e ; __traits(derivedMembers, mixin(fullModuleName)))
    9     {
   10         // will access yet-not semantic analyzed invalid symbol 'econn' in imports.elec
   11         static if ( __traits(compiles, mixin(`__traits(getAttributes, `~fullModuleName~`.`~e~`)`))) {}
   12     }
   13     pragma(msg, "-B");
   14 }