Edit-and-continue needs to be disabled for foreach loops that contain out vars #12736
Labels
Area-Compilers
Bug
Feature - Out Variable Declaration
Out Variable Declaration
Feature - Pattern Matching
Pattern Matching
Interactive-EnC
Resolution-Fixed
The bug has been fixed and/or the requested behavior has been implemented
Milestone
See also #1503, #12688
/cc @tmat @jaredpar
Because out vars and patterns can introduce variables in the expression of a
foreach
loop, but the declaration of theforeach
loop is not represented as a node, the current approach to edit-and-continue will break if aforeach
loop contains either out variables or pattern-matching in the expression. We will either need to disable edit-and-continue somehow, or begin parsing theforeach
loop into a new node form that contains a syntax node for the variable declaration. The latter is proposed in #12688./cc @CyrusNajmabadi @jcouv @VSadov
The text was updated successfully, but these errors were encountered: