(loop for var nil from 1 to 2 ...) signals error
Describe the bug
(loop for var nil from 1 to 2 collect var)
signals an error but the
equivalent (loop for var of-type nil from 1 to 2 collect var)
does not.
To Reproduce
Steps to reproduce the behavior:
- Evaluate
(loop for var nil from 1 to 2 collect var)
to see the error - Evaluate
(loop for var of-type nil from 1 to 2 collect var)
which produces(1 2)
.
Expected behavior
Both should work.
Desktop (please complete the following information):
- OS: All
- Version: 21e
Additional context
It's not really clear what a type of NIL
means in the context of
loop. But since of-type
works, we should be consistent since the
forms are supposed to be equivalent.