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

NamedTuples not working #32

Open
ParadaCarleton opened this issue Jun 10, 2022 · 1 comment
Open

NamedTuples not working #32

ParadaCarleton opened this issue Jun 10, 2022 · 1 comment

Comments

@ParadaCarleton
Copy link
Contributor

On version 1.1:

julia> tup = (x=1, y=2)
(x = 1, y = 2)

julia> tup[Not(:x)]
ERROR: MethodError: no method matching getindex(::NamedTuple{(:x, :y), Tuple{Int64, Int64}}, ::InvertedIndex{Symbol})
Closest candidates are:
  getindex(::NamedTuple, ::Int64) at /usr/share/julia/base/namedtuple.jl:126
  getindex(::NamedTuple, ::Symbol) at /usr/share/julia/base/namedtuple.jl:127
  getindex(::NamedTuple, ::Tuple{Vararg{Symbol}}) at /usr/share/julia/base/namedtuple.jl:128
  ...
Stacktrace:
 [1] top-level scope
   @ REPL[26]:1
@ParadaCarleton
Copy link
Contributor Author

ParadaCarleton commented Jun 11, 2022

Looks like someone forgot to make a new release after the last merge? @nalimilan could you make one?

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

No branches or pull requests

1 participant