[Issue 18249] pragma decoration skips documentation
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jan 17 09:37:07 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18249
Seb <greensunny12 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |greensunny12 at gmail.com
Resolution|--- |INVALID
--- Comment #1 from Seb <greensunny12 at gmail.com> ---
You documented an empty statement.
Pragmas can stand by itself, but they don't have any effect:
https://dlang.org/spec/pragma.html
So what you wanted to do was:
/**
Doc
*/
pragma(inline, true) // <- no semicolon here
void myDocumentedFunction() {}
--
More information about the Digitalmars-d-bugs
mailing list