void () { runWithLanguageLevel( LanguageLevel.PYTHON36, () -> doTest("Any", """ from typing import TypeVar, Generic T = TypeVar('T') V = TypeVar('V') class B(Generic[T]): def f(self) -> T: ... class C(B[V], Generic[V]): pass expr = C().f() """) ); }