Skip to content

Symbol("a,b") in method signatures should be displayed as var"a,b" #37743

@jishnub

Description

@jishnub

The issue was pointed out in this discourse discussion. The display appears to be incorrect here:

julia> for TA in [Symbol("a,b")]
       @eval f($TA) = a + b
       end

julia> methods(f)
# 1 method for generic function "f":
[1] f(a,b) in Main at REPL[1]:2

There is no method f(a,b) that is generated, and the method arguments should probably be displayed as var"a,b". For example:

julia> f(1,2)
ERROR: MethodError: no method matching f(::Int64, ::Int64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    display and printingAesthetics and correctness of printed representations of objects.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions