void () { runWithLanguageLevel( LanguageLevel.getLatest(), () -> doTest("Derived", """ from typing import Any, Generic, TypeVar T = TypeVar("T") class Base(Generic[T]): def __call__(self, p: Any) -> T: pass class Derived(Base): def __init__(): pass expr = Derived()""") ); }