workaround inline Issue 7625

- add explicit else branches so that dmd can inline those functions