Skip to content

Typechecking error with Vararg #44391

@goerch

Description

@goerch

Reported on discourse:

Julia 1.6.5

julia> const FormArgs{T, K} = Vararg{T, K}
Vararg{T, K} where {T, K}

julia> FormArgs{Int, 2}
Vararg{Int64, 2}

Julia 1.7.2

julia> const FormArgs{T, K} = Vararg{T, K}
Vararg{Any}

julia> FormArgs{Int, 2}
ERROR: ArgumentError: apply_type: too many arguments (expected 2)
Stacktrace:
 [1] top-level scope
   @ REPL[2]:1

Metadata

Metadata

Assignees

No one assigned

    Labels

    types and dispatchTypes, subtyping and method dispatch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions