Merge: Include extra Java files in a project
[nit.git] / lib / dummy_array.nit
index a0ea46c..f939e49 100644 (file)
@@ -4,7 +4,7 @@
 #
 # 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
@@ -13,8 +13,9 @@
 class DummyArray
        super Set[Int]
        super ArrayCapable[Int]
-       var _capacity: Int 
-       redef readable var _length: Int 
+       var _capacity: Int
+       var _length: Int
+       redef fun length do return _length
        var _keys: NativeArray[Int]
        var _values: NativeArray[Int]