# ERROR: syntax: extra token "QRelaySym" after end of expression

**URL:** <https://discourse.julialang.org/t/error-syntax-extra-token-qrelaysym-after-end-of-expression/17307>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [November 8, 2018, 3:00pm UTC](https://discourse.julialang.org/t/error-syntax-extra-token-qrelaysym-after-end-of-expression/17307 "2018-11-08T15:00:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)\
**Post date:** [November 8, 2018, 3:06pm UTC](https://discourse.julialang.org/t/error-syntax-extra-token-qrelaysym-after-end-of-expression/17307/2 "2018-11-08T15:06:25Z")

</div>

`type` is `mutable struct` now.

> [@PSA: use Julia 0.7 if you are upgrading](https://discourse.julialang.org/t/psa-use-julia-0-7-if-you-are-upgrading/13321):
>
> A lot of people are posting issues where their old code doesn’t work anymore on 1.0 because some function has been renamed or removed. The 0.7 release exists exactly for this reason: your old code will work on 0.7 and give you a specific warning about how to fix your code. If you have any old code, you should use 0.7 to get these warnings before switching to 1.0; even if you just have work habits that may need changing, you should probably use 0.7 for a while. If someone posts an issue like thi…

Julia 0.7 prints this:

```julia-auto
julia> type X end
┌ Warning: Deprecated syntax `type` at REPL[1]:1.
│ Use `mutable struct` instead.
└ @ REPL[1]:1

```

Also, please quote your code:

> [@PSA: how to quote code with backticks](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530):
>
> This is a short post on how to use backticks (` and ```) to quote code, so it is easy to read. This post can be linked to new users who are confused by this feature. Why By quoting your code, you get a monospaced font (which preserves indentation) and syntax highlighting. This makes it easier to read your code and help you. Displayed code looks like this: function displayed\_code(x::Int, y::Int) if x \< y println("x is smaller") else println("or not") end end Inline…

---

_[View the full topic](https://discourse.julialang.org/t/error-syntax-extra-token-qrelaysym-after-end-of-expression/17307)._
