Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #184 #185

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading