Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 15669 - Wrong line number in error message #5439

Merged
merged 1 commit into from Feb 11, 2016

Conversation

9rnsr
Copy link
Contributor

@9rnsr 9rnsr commented Feb 11, 2016

Member expressions of TupleDeclaration have different loc than the TupleExp in its ctor. It should be fixed.

Member expressions of `TupleDeclaration` have different loc than the
`TupleExp` in its ctor. It should be fixed.
@dlang-bot
Copy link
Contributor

Fix Bugzilla Description
15669 Wrong line number in error message

@@ -1329,6 +1333,7 @@ public:
// Note this prevents using foreach() over members, because the limits can change
sc.scopesym.members.push(v);
}

Expression e = new DsymbolExp(loc, v);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is the source of wrong line number (the location where a tuple variable declared).

@WalterBright
Copy link
Member

Auto-merge toggled on

WalterBright added a commit that referenced this pull request Feb 11, 2016
Issue 15669 - Wrong line number in error message
@WalterBright WalterBright merged commit e568416 into dlang:master Feb 11, 2016
@9rnsr 9rnsr deleted the fix15669 branch February 12, 2016 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants