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

Parse some type of auto declaration as EponymousTemplateDeclaration #240

Open
ghost opened this issue Jun 11, 2018 · 0 comments
Open

Parse some type of auto declaration as EponymousTemplateDeclaration #240

ghost opened this issue Jun 11, 2018 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented Jun 11, 2018

templated enums decl are called EponymousTemplateDeclaration, but not auto. Maybe they should be the same.

enum ep1(T) = T.sizeof; // EponymousTemplateDeclaration
auto ep2(T) = T.sizeof;  // for now VariableDeclaration...

(https://github.com/dlang-community/libdparse/blob/master/src/dparse/parser.d#L2015)

@ghost ghost added the parser label Jun 11, 2018
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

0 participants