class X def returnsNothing pass def main i = 5 print to i, 'x' # .error. invalid destination print to Object(), 'x' # .error. invalid destination print to i # .error. invalid destination print 'hi' print .returnsNothing # .error. cannot be printed