Skip to content

Invalid caching behavior when dispatching malformed types #61242

@JeffBezanson

Description

@JeffBezanson
julia> f(::Type{T}) where T = T

julia> f(Vector.body)
ERROR: UndefVarError: `T` not defined in static parameter matching

julia> f(Vector)
ERROR: UndefVarError: `T` not defined in static parameter matching

The first error is correct, but the second call should work, and does in versions prior to 1.12.

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateIndicates similar issues or pull requeststypes and dispatchTypes, subtyping and method dispatch

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions