Skip to content

Commit ab51aaa

Browse files
authored
Merge pull request #2306 from glts/typehint-run-form
Type-hint leiningen.run/run-form and print metadata in eval file
2 parents 05395e5 + 28ef899 commit ab51aaa

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

leiningen-core/src/leiningen/core/eval.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,8 @@
237237
(io/file (:target-path project) (str checksum "-init.clj"))
238238
(File/createTempFile "form-init" ".clj"))]
239239
(spit init-file
240-
(binding [*print-dup* *eval-print-dup*]
240+
(binding [*print-dup* *eval-print-dup*
241+
*print-meta* true]
241242
(pr-str (if-not (System/getenv "LEIN_FAST_TRAMPOLINE")
242243
`(.deleteOnExit (File. ~(.getCanonicalPath init-file))))
243244
form)))

src/leiningen/run.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
;; If the class exists, run its main method.
7878
class#
7979
(Reflector/invokeStaticMethod
80-
class# "main" (into-array [(into-array String '~args)]))
80+
class# "main" ^"[Ljava.lang.Object;" (into-array [(into-array String '~args)]))
8181

8282
;; If the symbol didn't resolve, give a reasonable message
8383
(= :not-found ns-flag#)

0 commit comments

Comments
 (0)