Cannot `convert` an object of type Void to an object of type Bool

Hi

I have a long piece of code containing the following lines

println(typeof(BREAK))
BREAK = true # BREAK ALL FOR-LOOPS

This returns the code provided below. The first line indicates that BREAK is Bool, as it should be, but then an error is returned and the line number indicated (219) is the line with BREAK is assigned the value true.
Any hint why this may be happening?

Bool
ERROR: LoadError: MethodError: Cannot `convert` an object of type Void to an object of type Bool
This may have arisen from a call to the constructor Bool(...),
since type constructors fall back to convert methods.
Stacktrace:
 [1] (::#enumerate_resist#79{DataMMM})(::Int64) at /home/mposs/Dropbox/Workspace/julia/MMMKnapsack/combi_k_resist.jl:219
 [2] (::#enumerate_resist#79{DataMMM})(::Int64) at /home/mposs/Dropbox/Workspace/julia/MMMKnapsack/combi_k_resist.jl:153
 [3] algo_combi_k_resist(::Float64, ::DataMMM) at /home/mposs/Dropbox/Workspace/julia/MMMKnapsack/combi_k_resist.jl:321
 [4] macro expansion at /home/mposs/Dropbox/Workspace/julia/MMMKnapsack/run_SP.jl:63 [inlined]
 [5] anonymous at ./<missing>:?
 [6] include_from_node1(::String) at ./loading.jl:576
 [7] include(::String) at ./sysimg.jl:14
 [8] process_options(::Base.JLOptions) at ./client.jl:305
 [9] _start() at ./client.jl:371
while loading /home/mposs/Dropbox/Workspace/julia/MMMKnapsack/run_SP.jl, in expression starting on line 46

Problem solved, I forgot a method was returning a Bool.