Possible bug?

I can’t reproduce (in Julia 1.8.3), even if I uncomment everything:

julia> using Base

julia> global primel = []
Any[]

julia> println(primel)
Any
[]

julia> println(div(10,3))
3

julia> if true
         println(primel)
         println(div(10,3))
         if true
           println(primel)
           println(div(10,3))
           if true
             println(primel)
             println(div(10,3))
             if true
               println(primel)
               println(div(10,3))
               if true
                 println(primel)
                 println(div(10,3))
                 if true
                   println(primel)
                   println(div(10,3))
                 end
               end
             end
           end
         end
       end
Any[]
3
Any[]
3
Any[]
3
Any[]
3
Any[]
3
Any[]
3

(Note that your original post was missing a close parenthesis on one line.)