Skip to content

Commit 60c093f

Browse files
Update irbuild-str.test
1 parent ef0a46e commit 60c093f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mypyc/test-data/irbuild-str.test

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,15 @@ def literal_rhs(x: str) -> bool:
748748
return x == literal
749749
def literal_lhs(x: str) -> bool:
750750
return literal == x
751+
def literal_both() -> bool:
752+
return literal == "literal"
751753
[out]
752754
def literal_rhs(x):
755+
x :: str
753756
L0:
754757
def literal_lhs(x):
758+
x :: str
759+
L0:
760+
def literal_both():
761+
r0 :: bool
755762
L0:

0 commit comments

Comments
 (0)