https://issues.dlang.org/show_bug.cgi?id=24525
Nick Treleaven <n...@geany.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal --- Comment #2 from Nick Treleaven <n...@geany.org> --- > A declaration `ref () {return a;}` gets parsed Sorry, that may be what is happening, but there is no identifier for the declaration, so it should try to parse an ExpressionStatement. --