Skip to content

Commit 107b491

Browse files
committed
Add closest candidates to MethodError in doctest
1 parent 451fb73 commit 107b491

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/RequiredInterfaces.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,10 @@ julia> bar(1, Baz())
263263
ERROR: MethodError: no method matching bar(::Int64, ::Baz)
264264
The function `bar` exists, but no method is defined for this combination of argument types.
265265
266+
Closest candidates are:
267+
bar(!Matched::Foo, !Matched::Int64)
268+
@ Main none:1
269+
266270
Stacktrace:
267271
[1] top-level scope
268272
@ none:1

0 commit comments

Comments
 (0)