Skip to content

Defining a struct with an outer constructor in local scope gives bad error #32325

Closed
@KristofferC

Description

@KristofferC
let
    struct a end
    a(b) = a()
end

gives

ERROR: syntax: Slot objects should not occur in an AST

Reported in https://discourse.julialang.org/t/outer-constructor-in-testset/25318.

Metadata

Metadata

Assignees

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