summaryrefslogtreecommitdiff
path: root/pylint/test/functional/yield_from_outside_func.py
blob: e2db90c942e4507f2d2c8d9069570506e95a9f73 (plain)
1
2
3
4
"""This is gramatically correct, but it's still a SyntaxError"""
yield from [1, 2]  # [yield-outside-function]

LAMBDA_WITH_YIELD = lambda: (yield from [1, 2])