class A var _foo as int class B inherits A var _foo as int # .error. inherited member with that name already exists class P def main is shared pass