Skip to content

Commit

Permalink
no assum_effects
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Mar 3, 2024
1 parent 1dfc7f2 commit d8dcbb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/implements.jl
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ inherited_type(::Type{<:Interface{<:Any,Inherits}}) where Inherits = Inherits
inherited_basetype(::Type{T}) where T = basetypeof(inherited_type(T))

inherited_optional_keys(::Type{<:Interface{Optional}}) where Optional = Optional
Base.@assume_effects :foldable function inherited_optional_keys(::Type{T}) where T<:Union
function inherited_optional_keys(::Type{T}) where T<:Union
map(propertynames(T)) do pn
inherited_optional_keys(getproperty(T, pn))
end
Expand Down Expand Up @@ -109,7 +109,7 @@ _as_tuple(x) = (x,)
struct Implemented{T<:Interface} end
struct NotImplemented{T<:Interface} end

Base.@assume_effects :foldable function basetypeof(::Type{T}) where T
function basetypeof(::Type{T}) where T
if T isa Union
types = map(propertynames(T)) do pn
t = getproperty(T, pn)
Expand Down

0 comments on commit d8dcbb1

Please sign in to comment.