Skip to content

Commit 3339875

Browse files
committed
move definition outside to appease Julia 1.0
1 parent b618fd5 commit 3339875

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/methods.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@
163163
end
164164
end
165165

166+
struct NotAFunction end # not <: Function on purpose, cf #224
167+
(::NotAFunction)(x) = abs2(x)
166168
@testset "do not require f::Function" begin
167-
struct NotAFunction end # not <: Function on purpose, cf #224
168-
(::NotAFunction)(x) = abs2(x)
169169
x = 0.7
170170
for f in [forward_fdm, central_fdm, backward_fdm]
171171
f(5, 1)(NotAFunction(), x) 2 * x

0 commit comments

Comments
 (0)