Skip to content

Commit

Permalink
fix bug in check_method_implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
schillic committed Jan 26, 2018
1 parent 6ac3b1b commit 86154fb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/helper_functions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ function check_method_implementation(interface::Type,
args_funcs::AbstractVector{Function};
print_results::Bool=false
)::Bool
has_subtypes = false # NOTE: 'isleaftype' does not work (type parameters)
for subtype in subtypes(interface)
has_subtypes = true
found = false
for args_func in args_funcs
if method_exists(func_name, args_func(subtype))
Expand All @@ -152,7 +154,7 @@ function check_method_implementation(interface::Type,
return false
end
end
return true
return has_subtypes
end

"""
Expand Down

0 comments on commit 86154fb

Please sign in to comment.