-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Open
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Description
Using the go 1.0.3 compiler, the code at http://play.golang.org/p/mSSyjMd_MU gives a syntax error on line 15 that there is an unexpected ), while the actual error is that there is a missing } on line 10. In this specific case, hypothetically the compiler could realize the error is before line 15, because there are two return statements (line 10 and 12) otherwise. I imagine finding the "true" location of the syntax error in the general case is hard to do, but I figured I would document the behavior in case something could be done.
Metadata
Metadata
Assignees
Labels
NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.