void () { doTest("Type[Derived]", """ class Base: def cls(self): return self.__class__ class Derived(Base): pass expr = Derived.cls(Derived())"""); doTest("Type[Derived]", """ class Base: def cls(self): return self.__class__ class Derived(Base): pass expr = Derived().cls()"""); }