libdparse icon indicating copy to clipboard operation
libdparse copied to clipboard

Parse some type of `auto` declaration as `EponymousTemplateDeclaration`

Open ghost opened this issue 7 years ago • 0 comments

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 avatar Jun 11 '18 12:06 ghost