-
- Notifications
You must be signed in to change notification settings - Fork 33.5k
Closed
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
This crashes on main:
def a(): def a(): [(lambda : b) for b in [a]] print(b)The original reproducer (found with my fork of https://github.com/carljm/compgenerator) was
class a: def a(): class a: [(lambda : (a := a[(a := 2)])[b]) for b in (lambda b, a: 7)[a]] [][2] = b (1)[lambda a: a] = 4 (2)[2] = b = a (4)[lambda b, a: b] = a = lambda : 1Found in #104528 (comment) but turned out be unrelated to that PR.
Linked PRs
Metadata
Metadata
Assignees
Labels
type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error