Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
KristofferC opened this issue Jun 14, 2019 · 0 comments · Fixed by #32326
Closed

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

KristofferC opened this issue Jun 14, 2019 · 0 comments · Fixed by #32326
Assignees
Labels
bug Indicates an unexpected problem or unintended behavior

Comments

@KristofferC
Copy link
Member

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.

@KristofferC KristofferC added the bug Indicates an unexpected problem or unintended behavior label Jun 14, 2019
@JeffBezanson JeffBezanson self-assigned this Jun 14, 2019
KristofferC pushed a commit that referenced this issue Jul 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants