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
fix Issue 23658 - .di generation of variables should turn them into d… #14851
Conversation
Thanks for your pull request, @WalterBright! Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub run digger -- build "master + dmd#14851" |
316d730
to
146c41d
Compare
ping @rainers |
Looks good for regular variables. For You could also declare variables with initializer and inferred type Test coverage seems a bit low with just a single variable, and this one now has a rather odd combination of |
So I just received your email @WalterBright, it ended up in my Spam folder. I haven't got anything to add to Rainer's comment except to say I really want to leave .di generator until after redesigning export, its current model does not fit Windows. If you'd like to talk about why it's required I'm on BeerConf for the next couple of hours. |
@rainers for the static library thing, the user can always craft the .di file as he sees fit. I like your typeof suggestion, I didn't think about that. I'm not quite sure what to do with static mixed with extern. static is pretty much ignored at the global level anyway, so I don't think it's a problem. @rikkimax this change to .di generation has to happen regardless. I'm surprised nobody brought it up before that I recall. |
953a6ab
to
c271384
Compare
c271384
to
0a5bf79
Compare
this is ready to go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, though still a bit low on test cases.
BTW: not related to this PR, but the di file generated from header1.d doesn't compile:
header1.di(666): Error: undefined identifier `tuple`
header1.di(666): Error: undefined identifier `tuple`
You know what to do: file a bugzilla issue! |
…eclarations