Fixed crash (and now recognises correctly) {**d, "b": "b"}["b"]

This commit is contained in:
Claude authored and Dave Halter committed 2018-09-23 21:00:11 +02:00
1 parent b9127147e4
commit 6bc79b4933
2 files changed
+22 -6

No files matched your search

+10
View File
@@ -137,5 +137,15 @@ set_t2.c
# -----------------
# python >= 3.5
d = {'a': 3}
#? dict()
{**d}
#? str()
{**d, "b": "b"}["b"]
# Should resolve to int() but jedi is not smart enough yet
# Here to make sure it doesn't result in crash though
#? str()
{**d, "b": "b"}["a"]