# ERROR: syntax: ssavalue with no def

**URL:** <https://discourse.julialang.org/t/error-syntax-ssavalue-with-no-def/24220>\
**Category:** New to Julia\
**Created:** [May 14, 2019, 9:37pm UTC](https://discourse.julialang.org/t/error-syntax-ssavalue-with-no-def/24220 "2019-05-14T21:37:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Post date:** [May 14, 2019, 9:37pm UTC](https://discourse.julialang.org/t/error-syntax-ssavalue-with-no-def/24220/1 "2019-05-14T21:37:59Z")

</div>

I get an extremely confusing error (see title) for a short line of code: `f((a -> a,); b=1)`. Not sure, what is wrong here? I tried adding another set of parentheses, but the same error: `f(((a -> a),); b=1)`.

---

<div class="post-metadata">

**Author:** ![jpsamaroo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpsamaroo/32/46804_2.png) [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Post date:** [May 14, 2019, 10:16pm UTC](https://discourse.julialang.org/t/error-syntax-ssavalue-with-no-def/24220/2 "2019-05-14T22:16:54Z")

</div>

Please post an MWE and your Julia `versioninfo()` output so we can better assist you:

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

<div class="post-metadata">

**Author:** ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Post date:** [May 14, 2019, 10:19pm UTC](https://discourse.julialang.org/t/error-syntax-ssavalue-with-no-def/24220/3 "2019-05-14T22:19:53Z")

</div>

MWE is in the first post already. versioninfo:

```julia

Julia Version 1.1.0
Commit 80516ca202 (2019-01-21 21:24 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) CPU E5-1650 v4 @ 3.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.1 (ORCJIT, broadwell)
Environment:
  JULIA_VERSION = 1.1.0
  JULIA_NUM_THREADS = 12

```

---

<div class="post-metadata">

**Author:** ![jpsamaroo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpsamaroo/32/46804_2.png) [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Post date:** [May 14, 2019, 10:21pm UTC](https://discourse.julialang.org/t/error-syntax-ssavalue-with-no-def/24220/4 "2019-05-14T22:21:37Z")

</div>

> [@aplavin](#):
>
> MWE is in the first post already. versioninfo:

```julia
julia> f((a -> a,); b=1)
ERROR: UndefVarError: f not defined
Stacktrace:
 [1] top-level scope at REPL[1]:1

```

EDIT: ~~In other words, if I can’t copy and paste your “MWE” into a fresh REPL session and reproduce your bug, it’s not an MWE.~~ ← This is still generally correct, but inaccurate in your case. I stand corrected 🙂

---

<div class="post-metadata">

**Author:** ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Post date:** [May 14, 2019, 10:23pm UTC](https://discourse.julialang.org/t/error-syntax-ssavalue-with-no-def/24220/5 "2019-05-14T22:23:49Z")

</div>

> [@jpsamaroo](#):
>
> f((a → a,); b=1)

Well, this just means it doesn’t reproduce for you. I get the error quoted in the topic title:

```julia
$ julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.1.0 (2019-01-21)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia> f((a -> a,); b=1)
ERROR: syntax: ssavalue with no def

```

Same in IJulia, for example, and with `startup-file=no` as well.

---

<div class="post-metadata">

**Author:** ![jpsamaroo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jpsamaroo/32/46804_2.png) [@jpsamaroo](https://discourse.julialang.org/u/jpsamaroo)\
**Post date:** [May 14, 2019, 10:24pm UTC](https://discourse.julialang.org/t/error-syntax-ssavalue-with-no-def/24220/6 "2019-05-14T22:24:36Z")

</div>

Fair point in this case. Rebuild/redownload Julia and see if it still occurs.

---

<div class="post-metadata">

**Author:** ![vchuravy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vchuravy/32/8_2.png) [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Post date:** [May 14, 2019, 11:29pm UTC](https://discourse.julialang.org/t/error-syntax-ssavalue-with-no-def/24220/7 "2019-05-14T23:29:20Z")

</div>

Can reproduce on Julia 1.1.0, but not on Julia master.

Please open an issue on Github.

---

<div class="post-metadata">

**Author:** ![aplavin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aplavin/32/222056_2.png) [@aplavin](https://discourse.julialang.org/u/aplavin)\
**Post date:** [May 15, 2019, 7:05am UTC](https://discourse.julialang.org/t/error-syntax-ssavalue-with-no-def/24220/8 "2019-05-15T07:05:03Z")

</div>

[Done](https://github.com/JuliaLang/julia/issues/32032)
