void () { runWithLanguageLevel( LanguageLevel.PYTHON35, () -> doTestByText(""" from typing import TypeVar F = TypeVar('F', bound=int) def deco(func: F) -> F: return <warning descr="Expected type 'F', got 'str' instead">""</warning>""") ); }