Fix the first issue in #1010

Somehow it was still possible with lists to recurse.
This commit is contained in:
Dave Halter
2018-03-18 17:09:44 +01:00
parent 1672613d04
commit 6042706922
4 changed files with 37 additions and 2 deletions

View File

@@ -401,6 +401,18 @@ for x in [1] + ['']:
#? int() str()
x
# -----------------
# Potential Recursion Issues
# -----------------
class X():
def y(self):
self.a = [1]
def x(self):
self.a = list(self.a)
#? int()
self.a[0]
# -----------------
# For loops with attribute assignment.
# -----------------