Skip to content

Commit abdc281

Browse files
author
Adrien Chauve
committed
Add new f-string test to check expression type checking
1 parent 6c4aa78 commit abdc281

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test-data/unit/check-expressions.test

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1166,6 +1166,15 @@ u'%s' % (u'abc',)
11661166
# flags: --fast-parser
11671167
f'foobar'
11681168

1169+
[case testFStringTypecheckExpression]
1170+
# flags: --fast-parser
1171+
# flags: --python-version 3.6
1172+
a: str
1173+
a = 'foo'
1174+
b: str
1175+
b = f'{a}bar'
1176+
b == 'foobar'
1177+
11691178

11701179
-- Lambdas
11711180
-- -------

0 commit comments

Comments
 (0)