extend IList def reversed as List # test a ref to a generic type that inherits from the one being extended return List() class P def main is shared pass