InvertedIndices.jl icon indicating copy to clipboard operation
InvertedIndices.jl copied to clipboard

`NamedTuples` not working

Open ParadaCarleton opened this issue 3 years ago • 1 comments

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 avatar Jun 10 '22 00:06 ParadaCarleton

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

ParadaCarleton avatar Jun 11 '22 18:06 ParadaCarleton