#.require. jvm @platform jvm namespace Test class Test def main is shared x as int = 0 while x<10 if true, break x += 1 # without 'if true' above java unreachable statement assert x==0 x = 1 for i as int in 1 : 10 if true, break x = i assert x==1 s as String = 'a' #l =['a', 'b'] # works l = ArrayList() l.add('a') l.add('done') for arg as String in l CobraCore.noOp(arg) if true, break s = 'b' assert s=='a'