Skip to content

Commit 7768142

Browse files
authored
fix macro hygeine (#58)
1 parent b6191a0 commit 7768142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/implements.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function _implements_inner(interface, objtype, test_objects; show=false)
8181
quote
8282
# Chreck that the type matches
8383
let objtype = $objtype, interface=$interface
84-
objtype <: Interfaces.requiredtype(interface) || throw(ArgumentError("$objtype is not a subtype of $(Interfaces.requiredtype(interface))"))
84+
objtype <: $Interfaces.requiredtype(interface) || throw(ArgumentError("$objtype is not a subtype of $(Interfaces.requiredtype(interface))"))
8585
end
8686
# Define a `implements` trait stating that `objtype` implements `interface`
8787
$Interfaces.implements(::Type{<:$interfacetype}, ::Type{<:$objtype}) = true

0 commit comments

Comments
 (0)