2024年Clojure现状调查!中分享您的想法。

欢迎!请参见关于 页面以获取更多有关如何使用本网站的信息。

+2
错误

重现

% cat src/dupes.clj
(ns dupes
  (:gen-class))

(defn -main
  []
  (let [x 1 y 1]
    (pr-str "this is not the error you're looking for")
    ;; This is a lengthy, multi-line comment. It serves no other purpose than to put
    ;; distance between the last line to emit a line number and the line that throws the
    ;; exception
    #{x y}))

% clj -M -m dupes
Execution error (IllegalArgumentException) at dupes/-main (dupes.clj:7).
Duplicate key: 1

在第7行报告错误,但应为第11行。

1 答案

0
...