Skip to content

Commit fb8f193

Browse files
committed
fix
1 parent d65bfdd commit fb8f193

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/global_checks.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ function test_method_signature(::typeof(rrule), method::Method)
2626
function_type = if method.sig <: Tuple{Any, RuleConfig, Type, Vararg}
2727
_parameters(method.sig)[3]
2828
elseif method.sig <: Tuple{Any, Type, Vararg}
29-
_parameters(method.sig)else
29+
_parameters(method.sig)[2]
30+
else
3031
nothing
3132
end
3233

@@ -71,7 +72,7 @@ function test_method_tables()
7172
# `rrule(::Type{<:Foo}, x)` then that would actually define `rrule(::DataType, x)`
7273
# which would be bad. This test checks for that and fails if such a method exists.
7374
for method in methods(rrule)
74-
test_method_signature(method)
75+
test_method_signature(rrule, method)
7576
end
7677
# frule
7778
for method in methods(frule)

0 commit comments

Comments
 (0)