Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LittleDict{Symbol,Int}(:x=>1) throws error #27

Closed
ablaom opened this issue Oct 23, 2019 · 1 comment · Fixed by #37
Closed

LittleDict{Symbol,Int}(:x=>1) throws error #27

ablaom opened this issue Oct 23, 2019 · 1 comment · Fixed by #37

Comments

@ablaom
Copy link

ablaom commented Oct 23, 2019

# work fine:
LittleDict(:x=>1)
Dict{Symbol,Int}(:x=>1)

# throws error:
LittleDict{Symbol,Int}(:x=>1)
ERROR: ArgumentError: LittleDict(kv): kv needs to be an iterator of tuples or pairs
Stacktrace:
 [1] LittleDict{Symbol,Int64,KS,VS} where VS<:(Union{#s14, #s13} where #s13<:(Array{T,1} where T) where #s14<:Tuple) where KS<:(Union{#s14, #s13} where #s13<:(Array{T,1} where T) where #s14<:Tuple)(::Pair{Symbol,Int64}) at /Users/anthony/.julia/packages/OrderedCollections/E21Rb/src/little_dict.jl:58
 [2] top-level scope at REPL[25]:1
@oxinabox
Copy link
Member

Yeah seems like a bug, since Dict accepts that form

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants