sbcl.sbcl/tests/data/wonky3.lisp
Douglas Katzman bea48ddf3b Report reader error position in COMPILE-FILE more accurately.
The position used to be reported as the point where the last successful
read stopped. Now it's where the failing form "really" began, after
skipping over whitespace and effectively whitespace char macro blobs.
2015-04-21 11:52:15 -04:00

18 lines
528 B
Common Lisp
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"(in form starting at line: 13, column: 1, position: 247)" ; expect this
#|
More randomness
|#
#+no-such-feature (defun foo
(hooey))
; yay
;;; This should report EOF at a reasonable place
;;; and not "line 1 column 0"
(defun complex (realpart &optional (imagpart 0))
"Return a complex number with the specified real and imaginary components."
(flet ((%%make-complex (realpart imagpart)
(cond ((and (typep realpart 'double-float)
(typep imagpart 'double-float))