class X def _foo as String return 'foo' def bar as String return _foo # this simple program caused an error in the compiler regarding the above return statement # turns out the return statement was not respecting that its expr might transform def main is shared x = X() assert x.bar == 'foo'