void () { runWithLanguageLevel( LanguageLevel.getLatest(), () -> doTestByText(""" from typing import TypeVar, Generic _T = TypeVar('_T') class Callback(Generic[_T]): def __call__(self, arg: _T): pass def foo(cb: Callback[int]): cb(<warning descr="Expected type 'int' (matched generic type '_T'), got 'str' instead">"42"</warning>)""") ); }