You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry this isn't the cleanest example, but I couldn't boil it down any more. This errors:
julia>using KeywordDispatch
julia>@kwdispatchf(x::T) where {T}
julia>@kwmethodf(x::T; y::Type{TI}) where {T, TI <:Vector{T}} = y
ERROR: UndefVarError: TI not defined
Stacktrace:
[1] top-level scope at /Users/mason/.julia/packages/KeywordDispatch/Hhjer/src/KeywordDispatch.jl:253
whereas it does not without the @kwmethod:
julia>f(x::T; y::Type{TI}) where {T, TI <:Vector{T}} = y
f (generic function with 1 method)
The text was updated successfully, but these errors were encountered:
Sorry this isn't the cleanest example, but I couldn't boil it down any more. This errors:
whereas it does not without the
@kwmethod
:The text was updated successfully, but these errors were encountered: