I have a compilation error when I try to use a class variable referencing itself:
(from class A)
@b = B.new(self)
@b.toto()
I have reproduced the error here: https://play.crystal-lang.org/#/r/7lmf
This example works if b is not a class variable for instance. My question is why the compiler thinks @b can be null since I initialise it just before using it?