Merge: model: register the implicitly injected Bool class in its hierarchy.
authorJean Privat <jean@pryen.org>
Sat, 13 Dec 2014 07:50:08 +0000 (02:50 -0500)
committerJean Privat <jean@pryen.org>
Sat, 13 Dec 2014 07:50:08 +0000 (02:50 -0500)
commit9e5c78f0faedc370144e473e9b795edb77718062
tree677ca5a34c0d83eb9fba0cf9c3a802e3db73b9d5
parent455b2157a426fcf359e4875cef46bdf111c71ca8
parent0e707aca800708e061e0a980a52821319e405c1f
Merge: model: register the implicitly injected Bool class in its hierarchy.

The model can inject a primitive a Bool class when required.
It was a hack which was initially introduced by the interpreter that need to manipulate boolean values even if they where not present in the original program.
However, the class was not fully initialized. So fix that.

Maybe a future PR will try to remove this hack (it is not the model's job to inject classes)

Pull-Request: #989
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
src/interpreter/naive_interpreter.nit