void () { runWithLanguageLevel( LanguageLevel.getLatest(), () -> doTestByText(""" from typing import TypeGuard def foo(param: str | int) -> TypeGuard[str]: return <warning descr="Expected type 'bool', got 'str | int' instead">param</warning> """) ); }