Nothing + string literal should not result in string literal but in a string type (because we don't know how the string literal could have looked like

This commit is contained in:
Dave Halter
2014-04-22 15:16:48 +02:00
parent 77d505e251
commit b685101efb
2 changed files with 30 additions and 12 deletions

View File

@@ -108,3 +108,12 @@ b[1]
z = sorted([1], key = lambda x : x):
#? int()
z[0]
# -----------------
# undefined names
# -----------------
a = foobarbaz + 'hello'
#? int() float()
{'hello': 1, 'bar': 1.0}[a]