lib/core: fix `List::clear` not setting `length` to 0
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 25 Feb 2016 04:08:42 +0000 (23:08 -0500)
committerAlexis Laferrière <alexis.laf@xymus.net>
Thu, 25 Feb 2016 04:13:21 +0000 (23:13 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/core/collection/list.nit

index 4516703..ab81a37 100644 (file)
@@ -186,6 +186,7 @@ class List[E]
        do
                _head = null
                _tail = null
+               length = 0
        end