lib: fix mismatch between keys and values formal types
authorJean Privat <jean@pryen.org>
Thu, 12 Apr 2012 14:29:53 +0000 (10:29 -0400)
committerJean Privat <jean@pryen.org>
Mon, 16 Apr 2012 18:35:34 +0000 (14:35 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/standard/collection/abstract_collection.nit
lib/standard/collection/array.nit

index c3643b1..72adc03 100644 (file)
@@ -357,7 +357,7 @@ end
 
 # Iterator on a 'values' point of view of a map
 class MapValuesIterator[K: Object, V]
-       super Iterator[K]
+       super Iterator[V]
        # The original iterator
        var iterator: MapIterator[K, V]
 
index fa69711..f9ed504 100644 (file)
@@ -623,7 +623,7 @@ class ArrayMapKeys[K: Object, E]
 end
 
 class ArrayMapValues[K: Object, E]
-       super RemovableCollection[K]
+       super RemovableCollection[E]
        # The original map
        var map: ArrayMap[K, E]
        redef fun first do return self.map._items.first.first