Skip to content

Commit 93fd89f

Browse files
use a final var in the test
1 parent c7b559a commit 93fd89f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mypyc/test-data/irbuild-tuple.test

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,15 @@ L4:
434434
return 1
435435

436436
[case testTupleBuiltFromConstantFolding]
437+
from typing import Final
438+
439+
c: Final = "c"
440+
437441
def f2(val: str) -> str:
438442
return val + "f2"
439443

440444
def test() -> None:
441-
a = tuple(f2(x) for x in "ab" + "c")
445+
a = tuple(f2(x) for x in "ab" + c)
442446

443447
[out]
444448
def f2(val):

0 commit comments

Comments
 (0)