go/parser: fails when a valid function declaration follows an broken one #29145
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Repro case:
The selector with no "
Sel
" field breaks parsing in themain
function, causing the code below it to fail parsing. Thehandle
function never gets registered as a function declaration. Moving thehandle
function above themain
function causes this code to type-check as expected. This poses a problem for editor-integrated tools that need to work on broken code.The text was updated successfully, but these errors were encountered: