class Test def main is shared Test().foo def foo as int ensure result == -1 result = 5 assert result == 5 return -1