# TypeError in typeassert, expected

**URL:** <https://discourse.julialang.org/t/typeerror-in-typeassert-expected/133021>\
**Category:** New to Julia\
**Created:** [October 9, 2025, 6:05pm UTC](https://discourse.julialang.org/t/typeerror-in-typeassert-expected/133021 "2025-10-09T18:05:17Z")\
**Posts on this page:** 2\
**Page:** 2

<div class="post-metadata">

**Author:** ![sgaure](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sgaure/32/14779_2.png) [@sgaure](https://discourse.julialang.org/u/sgaure)\
**Post date:** [October 12, 2025, 8:55am UTC](https://discourse.julialang.org/t/typeerror-in-typeassert-expected/133021/22 "2025-10-12T08:55:01Z")

</div>

Ah, right, I didn’t think about that. That leaves only `+` and `*`, and `++`. It will be seriously confusing:

```julia-auto
julia> const + = :
(::Colon) (generic function with 16 methods)

julia> for i in 1+2+10; println(i); end
1
3
5
7
9

```

---

<div class="post-metadata">

**Author:** ![sgaure](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sgaure/32/14779_2.png) [@sgaure](https://discourse.julialang.org/u/sgaure)\
**Post date:** [October 12, 2025, 9:19am UTC](https://discourse.julialang.org/t/typeerror-in-typeassert-expected/133021/23 "2025-10-12T09:19:49Z")

</div>

Btw, there are some helpful parsing errors:

```julia-auto
julia> 2**3
ERROR: ParseError:
# Error @ REPL[25]:1:2
2**3
#└┘ ── use `x^y` instead of `x **y` for exponentiation, and `x...` instead of `** x` for splatting

```

[Previous page](https://discourse.julialang.org/t/typeerror-in-typeassert-expected/133021.md?page=1)
