Skip to content

Commit

Permalink
Add new f-string test to check expression type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Chauve committed Dec 30, 2016
1 parent 6c4aa78 commit abdc281
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test-data/unit/check-expressions.test
Original file line number Diff line number Diff line change
Expand Up @@ -1166,6 +1166,15 @@ u'%s' % (u'abc',)
# flags: --fast-parser
f'foobar'

[case testFStringTypecheckExpression]
# flags: --fast-parser
# flags: --python-version 3.6
a: str
a = 'foo'
b: str
b = f'{a}bar'
b == 'foobar'


-- Lambdas
-- -------
Expand Down

0 comments on commit abdc281

Please sign in to comment.