请在 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
...