We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 111bc85 + c781049 commit 5ca8ce6Copy full SHA for 5ca8ce6
src/methods.jl
@@ -9,7 +9,7 @@ const previously_declared_for = Set([])
9
assert_like(f, T) = nothing
10
function assert_like(f, T, a, b...)
11
islike(a, T) || throw(ArgumentError("The function $f cannot be applied to $a which is not a $T-like object." *
12
- "Define `isnumberlike(::$(typeof(a))) = true` to enable this."))
+ "Define `islike(::$(typeof(a)), ::Type{$T}) = true` to enable this."))
13
assert_like(f, T, b...)
14
end
15
0 commit comments