neo: Correct the documentation of neo.nit according to PR #734.
[nit.git] / lib / dummy_array.nit
index 46297ea..21da4bd 100644 (file)
@@ -4,19 +4,19 @@
 #
 # This file is free software, which comes along with NIT.  This software is
 # distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
-# without  even  the implied warranty of  MERCHANTABILITY or  FITNESS FOR A 
+# without  even  the implied warranty of  MERCHANTABILITY or  FITNESS FOR A
 # PARTICULAR PURPOSE.  You can modify it is you want,  provided this header
 # is kept unaltered, and a notification of the changes is added.
 # You  are  allowed  to  redistribute it and sell it, alone or is a part of
 # another product.
 
 class DummyArray
-special Set[Int]
-special ArrayCapable[Int]
-       var _capacity: Int 
-       redef readable var _length: Int 
-       var _keys: NativeArray[Int]
-       var _values: NativeArray[Int]
+       super Set[Int]
+       super ArrayCapable[Int]
+       private var capacity: Int
+       redef var length: Int
+       private var keys: NativeArray[Int]
+       private var values: NativeArray[Int]
 
        redef fun add(value: Int)
        do
@@ -85,9 +85,9 @@ special ArrayCapable[Int]
 end
 
 class DummyIterator
-special Iterator[Int]
-       var _array: DummyArray
-       var _pos: Int
+       super Iterator[Int]
+       private var array: DummyArray
+       private var pos: Int
 
        redef fun item: Int
        do