Skip to content

Commit 9a5224e

Browse files
Update irbuild-str.test
1 parent 71cd6cc commit 9a5224e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mypyc/test-data/irbuild-str.test

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,9 +745,12 @@ L3:
745745
from typing import Final
746746

747747
constant: Final = "constant"
748+
tuple_of_literals = "tuple", "of", "literals"
748749

749750
def fold_tuple() -> str:
750751
return " ".join((constant, "folded"))
752+
def fold_tuple_var() -> str
753+
return " ".join(tuple_of_literals)
751754
def fold_list() -> str:
752755
return " ".join([constant, "folded"])
753756
[out]
@@ -756,6 +759,11 @@ def fold_tuple():
756759
L0:
757760
r0 = 'constant folded'
758761
return r0
762+
def fold_tuple_var():
763+
r0 :: str
764+
L0:
765+
r0 = 'tuple of literals'
766+
return r0
759767
def fold_list():
760768
r0 :: str
761769
L0:

0 commit comments

Comments
 (0)