Commit 1800d66
Fix number-recorded type hint
The type hint for for function returns should go between the var name
and arguments. In the case of num-recorded, if you tried to do
arithmetic on the returned value, you'd get an Exception like:
`java.lang.IllegalArgumentException: Unable to resolve classname: clojure.core$long@6df773ef`
See https://dev.clojure.org/jira/browse/CLJ-1753 and
https://dev.clojure.org/jira/browse/CLJ-1674 for details.
(cherry picked from commit 9650d76)1 parent 0f30919 commit 1800d66
File tree
2 files changed
+9
-1
lines changed- metrics-clojure-core
- src/metrics
- test/metrics/test
2 files changed
+9
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
0 commit comments