void () { runWithLanguageLevel(LanguageLevel.PYTHON312, () -> doTestByText(""" from typing import TypeVar K = TypeVar("K") class ClassC[V]: def method2[M](self, a: M, b: <error descr="Mixing traditional and new-style type variables is not allowed">K</error>): ... """)); }