class Program def run args = CobraCore.commandLineArgs if args.count>1 .handle(args.getRange(1, args.count-1)) # test that return type scanned from DLL is not nilable if the generic param is not nilable sb = Stack() sb.push(true) b = false b = sb.pop # no typecast to ! required. assert b CobraCore.noOp(b) # test a reference type ss = Stack() ss.push('') s = '' s = ss.pop # no typecast to ! required assert s == '' CobraCore.noOp(s) def handle(paths as List) print paths def main is shared pass