Skip to content
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,6 +1,6 @@
name = "Revise"
uuid = "295af30f-e4ad-537b-8983-00126c2a3abe"
version = "3.7.3"
version = "3.7.4"

[deps]
CodeTracking = "da1fd8a2-8d9e-5ec2-8556-3022fb5608a2"
Expand Down
8 changes: 6 additions & 2 deletions src/lowered.jl
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,12 @@
end
end
elseif LoweredCodeUtils.get_lhs_rhs(stmt) !== nothing
# If we're here, either isrequired[pc] is true, or the mode forces us to eval assignments
pc = step_expr!(recurse, frame, stmt, true)
if mode === :sigs && stmt.head === :const && (a = stmt.args[1]) isa GlobalRef && @invokelatest(isdefined(mod, a.name))
# avoid redefining types unless we have to
pc = next_or_nothing!(frame)

Check warning on line 457 in src/lowered.jl

View check run for this annotation

Codecov / codecov/patch

src/lowered.jl#L457

Added line #L457 was not covered by tests
else
pc = step_expr!(recurse, frame, stmt, true)
end
elseif head === :call
f = @lookup(frame, stmt.args[1])
if isdefined(Core, :_defaultctors) && f === Core._defaultctors && length(stmt.args) == 3
Expand Down
Loading