Skip to content

Commit 712b10a

Browse files
Update irbuild-str.test
1 parent 8b50424 commit 712b10a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

mypyc/test-data/irbuild-str.test

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,3 +605,19 @@ L3:
605605
r6 = r7
606606
L4:
607607
return r6
608+
609+
[case testFStringFromConstants]
610+
from typing import Final
611+
string: Final = "abc"
612+
integer: Final = 123
613+
floating: Final = 3.14
614+
615+
def test(x: str) -> str:
616+
return f"{string}{integer}{floating}{x}"
617+
618+
[out]
619+
def test(x):
620+
x, r0 :: str
621+
622+
L0:
623+
'abc1233.14 '

0 commit comments

Comments
 (0)