-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
From #9:
julia> using KeywordDispatch
julia> @kwdispatch f()
julia> @kwmethod f(;a::Type{Float64}) = 1
julia> f(a=Float64)
ERROR: KeywordMethodError: no keyword method matching f(; a::DataType)
Stacktrace:
[1] kwcall(::NamedTuple{(:a,),Tuple{DataType}}, ::Function) at /Users/simon/src/KeywordDispatch.jl/src/KeywordDispatch.jl:102
[2] f(; kwargs::Base.Iterators.Pairs{Symbol,DataType,Tuple{Symbol},NamedTuple{(:a,),Tuple{DataType}}}) at /Users/simon/src/KeywordDispatch.jl/src/KeywordDispatch.jl:177
[3] top-level scope at REPL[5]:1
mschauer
Metadata
Metadata
Assignees
Labels
No labels