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