core::hash_collection: native array storage is no more nullable
authorJean Privat <jean@pryen.org>
Tue, 20 Oct 2015 00:04:52 +0000 (20:04 -0400)
committerJean Privat <jean@pryen.org>
Tue, 20 Oct 2015 00:04:52 +0000 (20:04 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/core/collection/hash_collection.nit

index 1a27991..7c9fc6a 100644 (file)
@@ -24,7 +24,7 @@ end
 private abstract class HashCollection[K]
        type N: HashNode[K]
 
-       var array: nullable NativeArray[nullable N] = null # Used to store items
+       var array: NativeArray[nullable N] is noautoinit # Used to store items
        var capacity: Int = 0 # Size of _array
        var the_length: Int = 0 # Number of items in the map