# Bug in 0.7 or not?

**URL:** https://discourse.julialang.org/t/bug-in-0-7-or-not/12474
**Category:** General Usage
**Created:** [July 18, 2018, 8:35pm UTC](https://discourse.julialang.org/t/bug-in-0-7-or-not/12474 "2018-07-18T20:35:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Jean\_Michel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jean_michel/32/8282_2.png) [@Jean\_Michel](https://discourse.julialang.org/u/Jean_Michel)
#### Post date: [July 18, 2018, 8:35pm UTC](https://discourse.julialang.org/t/bug-in-0-7-or-not/12474/1 "2018-07-18T20:35:45Z")

</div>

I have a piece of code which is fine in 0.6.4 and gives a syntax error on 0.7.beta2:

`ERROR: LoadError: syntax: extra token "T" after end of expression`

here is an MWE:

```julia
struct bar{T<:Integer}
      d::Vector{T}
end
import Base.^
^(n::Integer, a::bar{T})where T=if n>length(a.d) T(n) else a.d[n] end

```

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [July 18, 2018, 8:41pm UTC](https://discourse.julialang.org/t/bug-in-0-7-or-not/12474/2 "2018-07-18T20:41:28Z")

</div>

Apparently you need a space between `)` and `where`, here is another MWE:

```julia
julia> foo(::T)where T = 1
ERROR: syntax: extra token "T" after end of expression

```

definitely looks like bug to me. Edit: This example does not work on 0.6 either though.
