We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6191a0 commit 0d5576eCopy full SHA for 0d5576e
src/implements.jl
@@ -81,7 +81,7 @@ function _implements_inner(interface, objtype, test_objects; show=false)
81
quote
82
# Chreck that the type matches
83
let objtype = $objtype, interface=$interface
84
- objtype <: Interfaces.requiredtype(interface) || throw(ArgumentError("$objtype is not a subtype of $(Interfaces.requiredtype(interface))"))
+ objtype <: $Interfaces.requiredtype(interface) || throw(ArgumentError("$objtype is not a subtype of $(Interfaces.requiredtype(interface))"))
85
end
86
# Define a `implements` trait stating that `objtype` implements `interface`
87
$Interfaces.implements(::Type{<:$interfacetype}, ::Type{<:$objtype}) = true
0 commit comments