"Fossies" - the Fresh Open Source Software Archive

Member "dmd-2.089.0/test/fail_compilation/diag6539.d" (2 Nov 2019, 299 Bytes) of package /linux/misc/dmd-2.089.0.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 /*
    2 TEST_OUTPUT:
    3 ---
    4 fail_compilation/diag6539.d(21): Error: overloadset `diag6539.Rectangle` is used as a type
    5 ---
    6 */
    7 
    8 mixin template foo()
    9 {
   10     struct Rectangle(T) {}
   11 }
   12 
   13 mixin template bar()
   14 {
   15     bool Rectangle(bool, int, int, int, int) {}
   16 }
   17 
   18 mixin foo;
   19 mixin bar;
   20 
   21 void test(Rectangle rect)
   22 {
   23 }