Skip to content

Wrongly named inner constructor doesn't error #52580

@Tortar

Description

@Tortar

This doesn't error in 1.9.4 and 1.10rc-2:

julia> struct A
           x::Int
           B(x) = new(x)
       end

but it should, right?

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