fix Issue 10820 - curly brakets prevent inlining with DMD
Merge pull request #2654 from 9rnsr/fix10820

Issue 10820 - curly brakets prevent inlining with DMD