Skip to content

Commit

Permalink
Merge pull request #185 from JuliaObjects/issue184
Browse files Browse the repository at this point in the history
fix #184
  • Loading branch information
jw3126 authored Dec 22, 2024
2 parents 11e9dc4 + a51071a commit 97c4aa7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Accessors"
uuid = "7d9f7c33-5ae7-4f3b-8dc6-eff91059b697"
authors = ["Takafumi Arakaki <[email protected]>", "Jan Weidner <[email protected]> and contributors"]
version = "0.1.39"
version = "0.1.40"

[deps]
CompositionsBase = "a33af91c-f02d-484b-be07-31d278c5ca2b"
Expand Down
2 changes: 1 addition & 1 deletion src/sugar.jl
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ function get_update_op(sym::Symbol)
msg = "Operation $sym doesn't look like an assignment"
throw(ArgumentError(msg))
end
Symbol(s[1:end-1])
Symbol(chop(s))
end

"""
Expand Down
4 changes: 4 additions & 0 deletions test/test_core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ end
@reset nt.a = 5
@test nt === (a=5,)

issue184 = 0x5eb720ca5fd4f4b6
z = 0x82307475878967f2
@test (issue184 z ) === (@set issue184 ⊻= z)

@test_throws Exception eval(:(@reset func(x, y) = 100))
end

Expand Down

0 comments on commit 97c4aa7

Please sign in to comment.