A file consisting only of the line:
---
public static nothrow pure extern
---
compiles without error. This patch (for D2.027) makes it an error.
(It remains OK to end with a colon).
Comment #1 by clugdbug — 2009-04-07T02:06:12Z
Created attachment 316
fix 2815
Adds:
case TOKeof:
error("declaration expected following attribute, not EOF");
break;
to Parser::parseBlock() in parse.c, by analogy to the behaviour for semicolon.