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

Unclear syntax error message for block of code #17781

Closed
KristofferC opened this issue Aug 3, 2016 · 0 comments
Closed

Unclear syntax error message for block of code #17781

KristofferC opened this issue Aug 3, 2016 · 0 comments
Assignees
Labels
compiler:lowering Syntax lowering (compiler front end, 2nd stage) error handling Handling of exceptions by Julia or the user

Comments

@KristofferC
Copy link
Sponsor Member

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)))))"
@JeffBezanson JeffBezanson added error handling Handling of exceptions by Julia or the user compiler:lowering Syntax lowering (compiler front end, 2nd stage) labels Aug 3, 2016
@JeffBezanson JeffBezanson self-assigned this Aug 3, 2016
JeffBezanson added a commit that referenced this issue Apr 17, 2018
JeffBezanson added a commit that referenced this issue Apr 17, 2018
mbauman added a commit that referenced this issue Apr 19, 2018
* origin/master: (22 commits)
  separate `isbitstype(::Type)` from `isbits` (#26850)
  bugfix for regex matches ending with non-ASCII (#26831)
  [NewOptimizer] track inbounds state as a per-statement flag
  change default LOAD_PATH and DEPOT_PATH (#26804, fix #25709)
  Change url scheme to https (#26835)
  [NewOptimizer] inlining: Refactor todo object
  inference: enable CodeInfo method_for_inference_limit_heuristics support (#26822)
  [NewOptimizer] Fix _apply elision (#26821)
  add test case from issue #26607, cfunction with no args (#26838)
  add `do` in front-end deparser. fixes #17781 (#26840)
  Preserve CallInst metadata in LateLowerGCFrame pass.
  Improve differences from R documentation (#26810)
  reserve syntax that could be used for computed field types (#18466) (#26816)
  Add support for Atomic{Bool} (Fix #26542). (#26597)
  Remove argument restriction on dims2string and inds2string (#26799) (#26817)
  remove some unnecessary `eltype` methods (#26791)
  optimize: ensure merge_value_ssa doesn't drop PiNodes
  inference: improve tmerge for Conditional and Const
  ensure more iterators stay type-stable
  code loading docs (#26787)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:lowering Syntax lowering (compiler front end, 2nd stage) error handling Handling of exceptions by Julia or the user
Projects
None yet
Development

No branches or pull requests

2 participants