fails:A method definition always resets the visibility to public for nested definitions at the toplevel
