The following fails because I define bar(::Foo, ::Any), which gives an ambiguity error when I try e.g. bar(::Foo, ::Int) with the default error fallback using the abstract type
using RequiredInterfaces
abstract type MyInterface end
@required MyInterface begin
bar(::MyInterface, ::Number)
end
struct Foo <: MyInterface end
bar(::Foo, x) = x
RequiredInterfaces.check_implementations(MyInterface)
# Fails because of ambiguity with the erroring fallback
The following fails because I define
bar(::Foo, ::Any), which gives an ambiguity error when I try e.g.bar(::Foo, ::Int)with the default error fallback using the abstract type