"Fossies" - the Fresh Open Source Software Archive

Member "dmd-2.089.1/test/compilable/test16013b.d" (14 Dec 2019, 296 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 // https://issues.dlang.org/show_bug.cgi?id=16013
    2 
    3 S s; /* Only this line has changed from above. */
    4 
    5 struct RefCounted
    6 {
    7     void opAssign(RefCounted rhs) {}
    8     void opAssign(S rhs) {}
    9     S refCountedPayload() { return S.init; }
   10     alias refCountedPayload this;
   11 }
   12 
   13 struct S { RefCounted s; }