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

Argument in tpl!arg not recognized for --symbolLocation #353

Closed
CyberShadow opened this issue Nov 15, 2016 · 3 comments
Closed

Argument in tpl!arg not recognized for --symbolLocation #353

CyberShadow opened this issue Nov 15, 2016 · 3 comments
Assignees
Labels

Comments

@CyberShadow
Copy link
Member

alias T(alias X) = X;
int foo;
alias baz = T!(foo); // works
alias bar = T!foo;   // doesn't work

For T!foo, DCD provides the location of T, not foo:

$ dcd-client test.d -c 47 --symbolLocation 
stdin	26

$ dcd-client test.d -c 76 --symbolLocation 
stdin	6
@Hackerpilot
Copy link
Collaborator

There's code that is designed specifically to allow this to work. I need to dig through the issue list and git history to figure out why it's there.

@Hackerpilot
Copy link
Collaborator

I traced it back to a fix for #182, but deleting that code doesn't cause the issue to re-appear or break any of the regression tests.

@Hackerpilot Hackerpilot self-assigned this Dec 20, 2016
Hackerpilot added a commit that referenced this issue Dec 20, 2016
@ghost
Copy link

ghost commented Jun 11, 2017

closed by #366

@ghost ghost closed this as completed Jun 11, 2017
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants