Skip to content

Unclear syntax error message for block of code #17781

Closed

Description

Pasting this:

D["a"] = function (s,o...)
            if a == 0
                f(a, b) do
                end
            end
        end,
D["b"] = function (s,o...)
    if  b == 0
        f(a, b) do
        end
    end
end

gives:

ERROR: syntax: invalid assignment location "(function (tuple s (... o)) (block (line 2 REPL[17]) (if (call == a 0) (block (line 3 REPL[17]) (call f (-> (tuple) (block (line 4 REPL[17]))) a b)))))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

compiler:loweringSyntax lowering (compiler front end, 2nd stage)error handlingHandling of exceptions by Julia or the user

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions