void () { runWithLanguageLevel( LanguageLevel.PYTHON312, () -> doTestByText(""" def foo[T: (str, bool)](p: T): return p expr = foo(<warning descr="Expected type 'T', got 'int' instead">42</warning>) """) ); }