What I do:
(defun f (foo) (etypecase foo ((array t (* *)) (when t (array-dimension foo 2))))
What happens:
; in: DEFUN F
; (ARRAY-DIMENSION FOO 2)
;
; caught WARNING:
; The array has dimensions (* *), 2 is too large.
;
; compilation unit finished
; caught 1 WARNING condition
What I expected to happen:
The code should compile without warnings or errors.
What I do:
(defun f (foo) (etypecase foo ((array t (* *)) (when t (array-dimension foo 2))))
What happens:
; in: DEFUN F
; (ARRAY-DIMENSION FOO 2)
;
; caught WARNING:
; The array has dimensions (* *), 2 is too large.
;
; compilation unit finished
; caught 1 WARNING condition
What I expected to happen:
The code should compile without warnings or errors.
run-sbcl.sh --version code/cl/ SBCL) master. 217-82ccfc0
(running SBCL from: /home/jmoringe/
SBCL 1.1.8.60.