Skip to content

Invalid vararg tuple type in method signature should throw an error #5018

Closed
@simonster

Description

julia> f(x::(Any..., Int)) = x[end];

julia> methods(f)
#1 method for generic function "f":
f(x::(Any...,Int64)) at none:1

julia> f((12.0,))
12.0

It looks like this currently dispatches as f(x::Tuple).

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions