# Invalid redefinition of constant?

**URL:** https://discourse.julialang.org/t/invalid-redefinition-of-constant/4080
**Category:** General Usage
**Created:** [June 4, 2017, 3:28pm UTC](https://discourse.julialang.org/t/invalid-redefinition-of-constant/4080 "2017-06-04T15:28:01Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)
#### Post date: [June 4, 2017, 3:28pm UTC](https://discourse.julialang.org/t/invalid-redefinition-of-constant/4080/1 "2017-06-04T15:28:01Z")

</div>

I had somehow made a mental note, that is now possible:

```julia
   _ _ _(_)_ | A fresh approach to technical computing
  (_) | (_) (_) | Documentation: https://docs.julialang.org
   _ _ _| |_ __ _ | Type "?help" for help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 0.5.2 (2017-05-06 16:34 UTC)
 _/ |\ __'_|_|_|\__'_| |  
|__/ | x86_64-linux-gnu

julia> module A
       type A
       x::Int64
       end
       end
ERROR: invalid redefinition of constant A

```

---

<div class="post-metadata">

### Author: ![yuyichao](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yuyichao/32/20_2.png) [@yuyichao](https://discourse.julialang.org/u/yuyichao)
#### Post date: [June 4, 2017, 4:00pm UTC](https://discourse.julialang.org/t/invalid-redefinition-of-constant/4080/2 "2017-06-04T16:00:00Z")

</div>

The module name is bound to the module itself inside the module.
