sbcl.sbcl/tests/case-test.lisp
Stas Boukarev 2a0a1c10b9 Fix error reporting for CASE macros.
When a duplicate clause is encountered the CASE macro tries to locate
its location, it uses sb-c::*current-path* which may not be bound when
loading a source file.
2015-08-31 00:36:13 +03:00

6 lines
165 B
Common Lisp

(macrolet ((mcase (&rest cases)
`(case 10
,@(loop for case in cases
collect (list case 20)))))
(mcase 10 10))