void () { runWithLanguageLevel(LanguageLevel.PYTHON312, () -> doTestByText(""" def func1[T](val: (<error descr="Assignment expressions are not allowed inside declarations of classes, functions and type aliases having type parameter list">x := int</error>)): ... """)); }