void () { doTestByText(""" from typing import Literal def condition1(): pass def return_literal_string() -> Literal["foo", "bar"]: return "foo" if condition1() else "bar" # OK def return_literal_str2(literal_string: Literal["foo"]) -> Literal["foo"]: return "foo" if condition1() else literal_string # OK """); }