added test for.previous.var-with-type-declaration
Wed Jan 29 06:34:35 PST 2014 attila.lendvai@gmail.com
* added test for.previous.var-with-type-declaration
diff -rN -u old-iterate/iterate-test.lisp new-iterate/iterate-test.lisp
--- old-iterate/iterate-test.lisp 2014-07-30 04:12:38.000000000 -0700
+++ new-iterate/iterate-test.lisp 2014-07-30 04:12:38.000000000 -0700
@@ -885,6 +885,12 @@
(collecting p))
(9 9 0 1))
+(deftest for.previous.var-with-type-declaration
+ (iter (for i from 1 to 5)
+ (for (the fixnum i-prev) previous i)
+ (collect i-prev))
+ (nil 1 2 3 4))
+
(deftest for.first.1
(iter (for num in '(20 19 18 17 16))
(for i first num then (1+ i))