void () { runWithLanguageLevel(LanguageLevel.PYTHON312, () -> doTestByText(""" class ClassC[V]: class ClassD[T: dict[str, <error descr="Generic types are not allowed inside constraints and bounds of type parameters">V</error>]]: ... """)); }