void () { runWithLanguageLevel( LanguageLevel.getLatest(), () -> doTestByText(""" from typing import Callable, TypeVar T = TypeVar('T', bound=int) def func(c: Callable[[T], None]): pass def accepts_anything(x: object) -> None: pass func(accepts_anything) """) ); }