Skip to content

Commit 5f4b119

Browse files
add warnings
1 parent cba26c1 commit 5f4b119

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/domains.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ import DomainSets: Interval, Ball, infimum, supremum
66
# type piracy on Interval for downstream compatibility to be reverted once upgrade is complete
77
function Base.getproperty(domain::Interval, sym::Symbol)
88
if sym === :lower
9-
return infimum(domain) # or domain.left also defined by IntervalSets.jl
9+
@warn "domain.lower is deprecated, used infimum(domain) instead"
10+
return infimum(domain)
1011
elseif sym === :upper
11-
return supremum(domain) # or domain.right
12+
@warn "domain.upper is deprecated, used supremum(domain) instead"
13+
return supremum(domain)
1214
else
1315
return getfield(domain, sym)
1416
end

0 commit comments

Comments
 (0)