diff --git a/test/completion/pep0484.py b/test/completion/pep0484.py index ed195b15..9e1c5e00 100644 --- a/test/completion/pep0484.py +++ b/test/completion/pep0484.py @@ -120,3 +120,16 @@ def function_with_non_pep_0484_annotation(x: "I can put anything here", y: 3 + 3 y #? function_with_non_pep_0484_annotation(1, "force string") + +def function_forward_reference_dynamic( + x: return_str_type(), + y: "return_str_type()") -> None: + # technically should not be resolvable since out of scope, + # but jedi is not smart enough for that + #? str() + x + #? str() + y + +def return_str_type(): + return str