"Fossies" - the Fresh Open Source Software Archive

Member "ldc-1.10.0-src/tests/d2/dmd-testsuite/runnable/imports/a18a.d" (19 Jun 2018, 309 Bytes) of package /linux/misc/ldc-1.10.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.a18a;
    2 
    3 interface IEnumerator
    4 {
    5 }
    6 
    7 class Enumerator(T) : IEnumerator
    8 {
    9     this()
   10     {
   11     }
   12 }
   13 
   14 interface IContainer(T)
   15 {
   16     alias   Container!(int)     selected_type;
   17 
   18     IEnumerator enumerate();
   19 }
   20 
   21 class Container(T) : IContainer!(int)
   22 {
   23     IEnumerator enumerate()
   24     {
   25         return new Enumerator!(int)();
   26     }
   27 }
   28