Invalid redefinition of constant?


#1

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

   _       _ _(_)_     |  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


#2

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