Bug 18249 – pragma decoration skips documentation

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-01-17T07:41:10Z
Last change time
2018-01-17T09:37:07Z
Assigned to
No Owner
Creator
Răzvan Ștefănescu

Comments

Comment #0 by rumbu — 2018-01-17T07:41:10Z
/** * Some documentation */ pragma(inline, true); void myDocumentedFunction() {} No documentation is generated for myDocumentedFunction
Comment #1 by greensunny12 — 2018-01-17T09:37:07Z
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() {}