namespace Test class Test def main is shared x as int x = 0 if true x = 1 assert x == 1 x = 0 if 1 x = 1 assert x == 1 x = 0 if 2+2 x = 1 assert x == 1 x = 0 if -1.0 x = 1 assert x == 1 x = 0 if -1.0f x = 1 assert x == 1 x = 0 if nil # .warning. always x = 1 assert x == 0 x = 0 if 0 x = 1 assert x == 0 # use variables i as int = 1 x = 0 if i x = 1 assert x == 1 i = 0 x = 0 if i x = 1 assert x == 0 o as Object = 1 x = 0 if o # .warning. always x = 1 assert x == 1 o = 0 x = 0 if o # .warning. always x = 1 assert x == 1