mirror of
https://github.com/python/cpython.git
synced 2025-09-01 22:47:59 +00:00
GH-131498: Cases generator: Allow input and 'peek' variables to be modified (GH-132506)
This commit is contained in:
parent
be763e550e
commit
844596c09f
9 changed files with 90 additions and 116 deletions
|
@ -500,9 +500,6 @@ class Emitter:
|
|||
if tkn in local_stores:
|
||||
for var in storage.inputs:
|
||||
if var.name == tkn.text:
|
||||
if var.in_local or var.in_memory():
|
||||
msg = f"Cannot assign to already defined input variable '{tkn.text}'"
|
||||
raise analysis_error(msg, tkn)
|
||||
var.in_local = True
|
||||
var.memory_offset = None
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue