Skip to content

Commit f20937e

Browse files
authored
Use the concrete Base.RefValue instead of abstract Ref in structs (#702)
1 parent e432c0c commit f20937e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ struct BreakpointSignature <: AbstractBreakpoint
500500
sig::Union{Nothing, Type}
501501
line::Int # 0 is a sentinel for first statement
502502
condition::Condition
503-
enabled::Ref{Bool}
503+
enabled::Base.RefValue{Bool}
504504
instances::Vector{BreakpointRef}
505505
end
506506
same_location(bp2::BreakpointSignature, bp::BreakpointSignature) =
@@ -539,7 +539,7 @@ struct BreakpointFileLocation <: AbstractBreakpoint
539539
abspath::String
540540
line::Int
541541
condition::Condition
542-
enabled::Ref{Bool}
542+
enabled::Base.RefValue{Bool}
543543
instances::Vector{BreakpointRef}
544544
end
545545
same_location(bp2::BreakpointFileLocation, bp::BreakpointFileLocation) =

0 commit comments

Comments
 (0)