Skip to content

subsumes is missing a method #129

@mhauru

Description

@mhauru
julia> subsumes(@varname(a.b[2]), @varname(a.b.c))
ERROR: MethodError: no method matching subsumes(::IndexLens{Tuple{Int64}}, ::PropertyLens{:c})
The function `subsumes` exists, but no method is defined for this combination of argument types.

Closest candidates are:
  subsumes(::typeof(identity), ::Union{typeof(identity), IndexLens, PropertyLens, ComposedFunction})
   @ AbstractPPL ~/.julia/packages/AbstractPPL/7aTb9/src/varname.jl:320
  subsumes(::Union{typeof(identity), IndexLens, PropertyLens, ComposedFunction}, ::typeof(identity))
   @ AbstractPPL ~/.julia/packages/AbstractPPL/7aTb9/src/varname.jl:321
  subsumes(::PropertyLens{name}, ::PropertyLens{name}) where name
   @ AbstractPPL ~/.julia/packages/AbstractPPL/7aTb9/src/varname.jl:336
  ...

Stacktrace:
 [1] subsumes(t::ComposedFunction{IndexLens{…}, PropertyLens{…}}, u::ComposedFunction{PropertyLens{…}, PropertyLens{…}})
   @ AbstractPPL ~/.julia/packages/AbstractPPL/7aTb9/src/varname.jl:324
 [2] subsumes(u::VarName{:a, ComposedFunction{…}}, v::VarName{:a, ComposedFunction{…}})
   @ AbstractPPL ~/.julia/packages/AbstractPPL/7aTb9/src/varname.jl:311
 [3] top-level scope
   @ REPL[5]:1
Some type information was truncated. Use `show(err)` to see complete types.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions