From d219afdd24afe34b21bf55b579c244b61452410b Mon Sep 17 00:00:00 2001 From: Jean Privat Date: Tue, 25 Mar 2014 08:30:29 -0400 Subject: [PATCH] lib/coll: remove private types from public signatures Signed-off-by: Jean Privat --- lib/standard/collection/array.nit | 4 ++-- lib/standard/collection/hash_collection.nit | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/standard/collection/array.nit b/lib/standard/collection/array.nit index c664719..36e878b 100644 --- a/lib/standard/collection/array.nit +++ b/lib/standard/collection/array.nit @@ -457,8 +457,8 @@ class ArrayMap[K: Object, E] end end - redef var keys: ArrayMapKeys[K, E] = new ArrayMapKeys[K, E](self) - redef var values: ArrayMapValues[K, E] = new ArrayMapValues[K, E](self) + redef var keys: RemovableCollection[K] = new ArrayMapKeys[K, E](self) + redef var values: RemovableCollection[E] = new ArrayMapValues[K, E](self) # O(1) redef fun length do return _items.length diff --git a/lib/standard/collection/hash_collection.nit b/lib/standard/collection/hash_collection.nit index a34fd7e..0f2a0e2 100644 --- a/lib/standard/collection/hash_collection.nit +++ b/lib/standard/collection/hash_collection.nit @@ -242,8 +242,8 @@ class HashMap[K: Object, V] enlarge(0) end - redef var keys: HashMapKeys[K, V] = new HashMapKeys[K, V](self) - redef var values: HashMapValues[K, V] = new HashMapValues[K, V](self) + redef var keys: RemovableCollection[K] = new HashMapKeys[K, V](self) + redef var values: RemovableCollection[V] = new HashMapValues[K, V](self) end # View of the keys of a HashMap -- 1.7.9.5