UDAs grammar: @<template_instance> valid?
Bruno Medeiros via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 29 05:33:00 PDT 2014
Someone opened an issue report for a bug in the DDT parser, it doesn't
parse this:
template X(int Y){}
@X!3 // error here
void main(){}
And yet DMD accepts this code. Is this grammar supposed to be valid
though? The grammar spec doesn't allow it, not that means much. I
searched for an open grammar bug, but couldn't find one.
--
Bruno Medeiros
https://twitter.com/brunodomedeiros
More information about the Digitalmars-d
mailing list