summaryrefslogtreecommitdiff
path: root/tests/functional/r/recursion/recursion_error_2906.py
blob: b18d2731530e7e81dd91aeb89dc96b493c00787f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Recursion error for https://github.com/pylint-dev/pylint/issues/2906"""
# pylint: disable=disallowed-name,global-statement,invalid-name,missing-docstring
lst = []


def foo():
    lst.append(0)


def bar():
    global lst

    length = len(lst)
    lst += [length]