Skip to content

Commit

Permalink
Add closest candidates to MethodError in doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Seelengrab committed Dec 8, 2024
1 parent 451fb73 commit 107b491
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/RequiredInterfaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ julia> bar(1, Baz())
ERROR: MethodError: no method matching bar(::Int64, ::Baz)
The function `bar` exists, but no method is defined for this combination of argument types.
Closest candidates are:
bar(!Matched::Foo, !Matched::Int64)
@ Main none:1
Stacktrace:
[1] top-level scope
@ none:1
Expand Down

0 comments on commit 107b491

Please sign in to comment.