You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure defn metadata are always preserved as a map (#1187)
Hi,
can you please review patch to merge the `attr-map?` and the metadata in
`defn` using a `loop` rather than `conj`. It addresses #1186.
The previous `conj` operation was return in a list rather than a map.
This also appears to be the likely cause why the `:decorators` meta key
didn't work when passed in as `defn` metadata in `defasync`.
I've updated the test suite for the same.
Thanks
Co-authored-by: ikappaki <[email protected]>
Co-authored-by: Chris Rink <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
### Changed
9
9
*`import` now returns nil instead of the last module's string representation (#1174)
10
10
11
+
### Fixed
12
+
* Fix a bug in `defn` where the `attr-map?` and function metdata were merged into a seq instead of a map, causing `macroexpand` to fail in some cases (#1186)
13
+
11
14
## [v0.3.5]
12
15
### Changed
13
16
*`alter-var-root` now returns the new value to align with Clojure behavior. Updated the docstring to highlight side effects of direct linking optimization (#1166)
0 commit comments